forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
43 lines (43 loc) · 1.14 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
environment:
matrix:
- node_version: '8'
- node_version: '10'
branches:
only:
- master
- '/v[0-9]+(\.[0-9]+)*/'
install:
- ps: 'Install-Product node $env:node_version'
- yarn install --frozen-lockfile
build_script:
- ps: >-
if ($env:APPVEYOR_REPO_BRANCH -eq 'master') { node
./scripts/set-dev-version.js }
- yarn run build-dist
- yarn run build-win-installer
test_script:
- cmd: |-
SET npm_execpath=%APPVEYOR_BUILD_FOLDER%\bin\yarn.js
node ./node_modules/jest/bin/jest.js --verbose --maxWorkers=3
artifacts:
- path: artifacts/*.msi
name: Installer
cache:
- node_modules
- '%LOCALAPPDATA%/Yarn'
notifications:
- provider: Webhook
url: 'https://nightly.yarnpkg.com/archive_appveyor'
method: POST
headers:
Authorization:
secure: uH4c9HNDdRuL4omqqbTtBq3KgzjGTFmpvPdiNuk9391Z0YXRoRLA1Ptpa3seZ0Pt
on_build_failure: false
deploy:
- provider: Webhook
url: 'https://nightly.yarnpkg.com/release_appveyor'
authorization:
secure: uH4c9HNDdRuL4omqqbTtBq3KgzjGTFmpvPdiNuk9391Z0YXRoRLA1Ptpa3seZ0Pt
on:
branch: '/v[0-9]+(\.[0-9]+)*/'
appveyor_repo_tag: true