2017-02-15 20:32:15 +00:00
|
|
|
image: Visual Studio 2015
|
|
|
|
|
2017-02-16 17:10:12 +00:00
|
|
|
build: off
|
|
|
|
deploy: off
|
2017-02-15 20:32:15 +00:00
|
|
|
|
2017-02-16 17:10:12 +00:00
|
|
|
#---------------------------------#
|
|
|
|
# environment configuration #
|
|
|
|
#---------------------------------#
|
2017-02-15 20:32:15 +00:00
|
|
|
|
2017-02-16 17:10:12 +00:00
|
|
|
shallow_clone: true
|
2017-02-15 20:32:15 +00:00
|
|
|
platform: x64
|
2017-02-16 17:10:12 +00:00
|
|
|
environment:
|
2017-03-16 17:51:56 +00:00
|
|
|
nodejs_version: "7.4.0"
|
2017-02-15 20:32:15 +00:00
|
|
|
|
2017-02-16 17:10:12 +00:00
|
|
|
# Things to install after repo clone
|
2017-02-15 20:32:15 +00:00
|
|
|
install:
|
|
|
|
- ps: Install-Product node $env:nodejs_version $env:Platform
|
2017-02-27 21:10:34 +00:00
|
|
|
- npm install -g npm@latest > Nul
|
|
|
|
- npm install > NUL
|
2017-02-15 20:32:15 +00:00
|
|
|
|
|
|
|
cache:
|
2017-03-16 17:51:56 +00:00
|
|
|
- '%APPDATA%\npm-cache -> .appveyor.cache'
|
|
|
|
- '%USERPROFILE%\.electron -> .appveyor.cache'
|
|
|
|
- 'node_modules -> .appveyor.cache'
|
2017-02-15 20:32:15 +00:00
|
|
|
|
2017-02-16 17:10:12 +00:00
|
|
|
#---------------------------------#
|
|
|
|
# tests configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
2017-02-15 20:32:15 +00:00
|
|
|
test_script:
|
|
|
|
- node --version
|
2017-02-27 21:10:34 +00:00
|
|
|
- npm --version
|
|
|
|
- npm test
|
2017-02-16 17:10:12 +00:00
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# deployment configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
#deploy:
|
|
|
|
# - provider: S3
|
|
|
|
# access_key_id:
|
|
|
|
# secure: ABcd==
|
|
|
|
# secret_access_key:
|
|
|
|
# secure: ABcd==
|
|
|
|
# bucket: my_bucket
|
|
|
|
# folder:
|
|
|
|
# artifact:
|
|
|
|
# set_public: false
|
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# global handlers #
|
|
|
|
#---------------------------------#
|
2017-02-15 20:32:15 +00:00
|
|
|
|
2017-03-16 17:51:56 +00:00
|
|
|
#build_script:
|
|
|
|
# - npm run build-n-package:win
|
2017-02-15 20:32:15 +00:00
|
|
|
# - ps: ls .\dist\win\* | % { Push-AppveyorArtifact $_.FullName }
|