forked from microsoft/vscode-pull-request-github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipeline.nightly.yml
70 lines (60 loc) · 2.16 KB
/
azure-pipeline.nightly.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
# Run on a schedule
trigger: none
pr: none
schedules:
- cron: '0 9 * * Mon-Thu'
displayName: Nightly Release Schedule
always: true
branches:
include:
- main
jobs:
- job: nightly_release
displayName: Nightly Release
pool:
vmImage: 'macOS-10.15'
steps:
- template: scripts/ci/common-setup.yml
- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'
- script: yarn run compile
displayName: Compile
- script: yarn run test
displayName: Run test suite
env:
TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/test-results.xml
- script: yarn run browsertest --browserType=chromium
displayName: Run test suite (chromium)
env:
TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/browser-chromium-test-results.xml
- script: yarn run browsertest --browserType=firefox
displayName: Run test suite (firefox)
env:
TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/browser-firefox-test-results.xml
- script: yarn run browsertest --browserType=webkit
displayName: Run test suite (webkit)
env:
TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/browser-webkit-test-results.xml
- script: >
node ./scripts/prepare-nightly-build.js
-v "$VERSION" -i "$NAME" -n "$DISPLAYNAME" -d "$DESCRIPTION" -p "$PUBLISHER"
displayName: Generate package.json
env:
NAME: vscode-pull-request-github-insiders
DISPLAYNAME: GitHub Pull Request Nightly Build
DESCRIPTION: Nightly Build GitHub Pull Request extension
PUBLISHER: GitHub
- script: |
mv ./package.json ./package.json.bak
mv ./package.insiders.json ./package.json
mv ./README.md ./README.md.bak
mv ./README.insiders.md ./README.md
mv ./src/constants.ts ./src/constants.ts.bak
mv ./src/constants.insiders.ts ./src/constants.ts
npx vsce publish -p "$TOKEN" --yarn --noVerify
displayName: Publish
env:
TOKEN: $(vsce.token)