github-desktop/appveyor.yml

41 lines
759 B
YAML
Raw Normal View History

2016-08-10 15:11:32 +00:00
os: Visual Studio 2015
2016-09-28 19:03:48 +00:00
platform:
- x64
2016-05-11 16:16:32 +00:00
environment:
2016-06-07 19:33:40 +00:00
nodejs_version: "6"
2016-05-11 16:16:32 +00:00
2016-09-28 19:21:02 +00:00
cache:
2016-09-28 19:25:35 +00:00
- node_modules -> appveyor.yml
2016-09-28 19:28:08 +00:00
- '%USERPROFILE%\.electron -> appveyor.yml'
2016-09-28 19:21:02 +00:00
2016-05-11 16:16:32 +00:00
branches:
only:
- master
2016-05-26 17:53:22 +00:00
- /^__release-.*/
2016-05-11 16:16:32 +00:00
skip_tags: true
version: "{build}"
install:
2016-09-28 19:09:30 +00:00
- ps: Install-Product node $env:nodejs_version x64
2016-08-10 15:17:23 +00:00
- npm install -g npm
2016-06-27 04:27:05 +00:00
- 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
2016-05-11 16:16:32 +00:00
- npm install
2016-05-11 19:27:49 +00:00
build_script:
2016-05-11 19:26:54 +00:00
- npm run lint
2016-05-25 15:12:13 +00:00
- npm run build:prod
2016-05-11 19:26:54 +00:00
2016-09-28 18:38:41 +00:00
test_script:
- npm test
on_success:
2016-09-28 16:17:33 +00:00
- npm run publish