mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-19 21:07:18 +00:00

- Add a `make test-spectron` target - Install `spectron` and `mocha` (since we don't need to run the tests inside an Electron instance like in the case of `electron-mocha`) - Add some example tests Fixes: https://github.com/resin-io/etcher/issues/1870 Change-Type: patch Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
# appveyor file
|
|
# http://www.appveyor.com/docs/appveyor-yml
|
|
|
|
image: Visual Studio 2015
|
|
|
|
# See https://github.com/electron/spectron#on-appveyor
|
|
os: unstable
|
|
|
|
cache:
|
|
- C:\Users\appveyor\.node-gyp
|
|
- '%LOCALAPPDATA%\electron\Cache'
|
|
- '%LOCALAPPDATA%\electron-builder\cache'
|
|
- '%AppData%\npm-cache'
|
|
- '%USERPROFILE%\.pkg-cache'
|
|
- node_modules -> npm-shrinkwrap.json
|
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
|
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
|
- C:\Users\appveyor\AppData\Local\Temp\chocolatey -> appveyor.yml
|
|
|
|
# what combinations to test
|
|
environment:
|
|
global:
|
|
ELECTRON_NO_ATTACH_CONSOLE: true
|
|
nodejs_version: "6.10.3"
|
|
|
|
platform:
|
|
- x86
|
|
- x64
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
|
|
install:
|
|
- ps: Update-NodeJsInstallation $env:nodejs_version $env:Platform
|
|
- set PATH=C:\Program Files (x86)\Windows Kits\8.1\bin\x86;%PATH%
|
|
- set PATH=C:\Program Files (x86)\NSIS;%PATH%
|
|
- set PATH=C:\MinGW\bin;%PATH%
|
|
- set PATH=C:\MinGW\msys\1.0\bin;%PATH%
|
|
- bash .\scripts\ci\install.sh -o win32 -r %Platform%
|
|
|
|
build: off
|
|
|
|
test_script:
|
|
- node --version
|
|
- npm --version
|
|
- bash .\scripts\ci\test.sh -o win32 -r %Platform%
|
|
- bash .\scripts\ci\build-installers.sh -o win32 -r %Platform%
|
|
|
|
deploy_script:
|
|
- if %APPVEYOR_REPO_BRANCH%==master (bash .\scripts\ci\deploy.sh -o win32 -r %Platform%)
|
|
|
|
notifications:
|
|
|
|
- provider: Webhook
|
|
url: https://webhooks.gitter.im/e/0becb34b32e20d389bb8
|
|
on_build_success: false
|
|
on_build_failure: true
|
|
on_build_status_changed: true
|