-
Notifications
You must be signed in to change notification settings - Fork 0
/
disabled.appveyor.yml
101 lines (86 loc) · 2.84 KB
/
disabled.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
image: Ubuntu
branches:
except:
- gh-pages
# cache:
# - node_modules -> appveyor.yml, package.json, yarn.lock
skip_tags: true
max_jobs: 2
matrix:
fast_finish: true
init:
- sh: sudo apt-get -y install jq
- cmd: powershell Install-Product node $env:nodejs_version
- sh: nvm install $nodejs_version
- node --version
- yarn --version
install:
- yarn --ignore-engines
environment:
nodejs_version: "16"
matrix:
- job_name: Build
job_group: Build
- job_name: TestNodeJS16
job_group: Tests
job_depends_on: Build
- job_name: TestNodeJS12
job_group: Tests
job_depends_on: Build
nodejs_version: "12"
- job_name: Deploy
job_depends_on: Tests
for:
- matrix:
only:
- job_name: Build
build_script:
- yarn build
- 7z a artifact.zip README.md packages/*/target packages/*/docs packages/*/flow-typed packages/*/typings
- # appveyor PushArtifact artifact.zip
artifacts:
- path: artifact.zip
name: artifact
- matrix:
only:
- job_name: TestNodeJS12
branches:
only:
- master
before_test:
- appveyor SetVariable -Name ARTIFACT_JOB -Value $(curl https://ci.appveyor.com/api/projects/QIWI/masker/builds/$APPVEYOR_BUILD_ID | jq -r '.build.jobs[0].jobId')
- appveyor DownloadFile "https://ci.appveyor.com/api/buildjobs/$ARTIFACT_JOB/artifacts/artifact.zip"
- 7z x artifact.zip -y
test_script:
- yarn test
- matrix:
only:
- job_name: TestNodeJS16
before_test:
- appveyor SetVariable -Name ARTIFACT_JOB -Value $(curl https://ci.appveyor.com/api/projects/QIWI/masker/builds/$APPVEYOR_BUILD_ID | jq -r '.build.jobs[0].jobId')
- appveyor DownloadFile "https://ci.appveyor.com/api/buildjobs/$ARTIFACT_JOB/artifacts/artifact.zip"
- 7z x artifact.zip -y
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
test_script:
- yarn test:report
after_test:
- ./cc-test-reporter format-coverage -t lcov ./coverage/lcov.info
- sh: |
if [ "$APPVEYOR_PULL_REQUEST_NUMBER" = "" ]; then
./cc-test-reporter after-build -r ${CC_TEST_REPORTER_ID}
fi
- matrix:
only:
- APPVEYOR_PULL_REQUEST_NUMBER: ''
- job_name: Deploy
branches:
only:
- master
before_deploy:
- appveyor SetVariable -Name ARTIFACT_JOB -Value $(curl https://ci.appveyor.com/api/projects/QIWI/masker/builds/$APPVEYOR_BUILD_ID | jq -r '.build.jobs[0].jobId')
- appveyor DownloadFile "https://ci.appveyor.com/api/buildjobs/$ARTIFACT_JOB/artifacts/artifact.zip"
- 7z x artifact.zip -y
deploy_script:
- npm_config_yes=true npx -p @qiwi/semrel-toolkit multi-semrel