insomnia/appveyor.yml

55 lines
1.2 KiB
YAML
Raw Normal View History

image: Visual Studio 2015
build: off
#---------------------------------#
# environment configuration #
#---------------------------------#
shallow_clone: true
platform: x64
environment:
nodejs_version: "7.4.0"
# Things to install after repo clone
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
cache:
- '%APPDATA%\npm-cache -> .appveyor.cache'
- '%USERPROFILE%\.electron -> .appveyor.cache'
- 'node_modules -> .appveyor.cache'
#---------------------------------#
# tests configuration #
#---------------------------------#
test_script:
- node --version
2017-02-27 21:10:34 +00:00
- npm --version
- npm test
#---------------------------------#
# 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 #
#---------------------------------#
deploy_script:
- npm run build-n-package:win
- ps: ls .\dist\win\* | % { Push-AppveyorArtifact $_.FullName }