github-desktop/appveyor.yml
2016-09-28 12:17:33 -04:00

38 lines
704 B
YAML

os: Visual Studio 2015
environment:
nodejs_version: "6"
cache:
- node_modules
- '%USERPROFILE%\.electron'
branches:
only:
- master
- /^__release-.*/
skip_tags: true
version: "{build}"
install:
- npm install -g npm
- ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
- ps: $fileContent += $env:PRIVATE_KEY.Replace(' ', "`n")
- ps: $fileContent += "`n-----END RSA PRIVATE KEY-----`n"
- ps: Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
- git submodule update --init --recursive
- ps: Install-Product node $env:nodejs_version
- npm install
build_script:
- npm run lint
- npm run build:prod
test_script:
- npm test
on_success:
- npm run publish