This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathazure-pipelines.yml
99 lines (81 loc) · 2.48 KB
/
azure-pipelines.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
# Right now this definition just runs component registration on master.
# The rest of the build is a port of the circleci config and left there
# for reference in case we want to use it later.
pr: none
# pr: [master]
trigger: [master]
pool:
vmImage: 'ubuntu-latest'
variables:
# emulate circleci method of detecting whether build is running in CI or local
CI: 1
steps:
- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'
displayName: Component governance registration
# Rest of build is not being used for now, but leaving setup for reference
# - task: NodeTool@0
# inputs:
# versionSpec: '10.x'
# displayName: 'Install Node.js'
# - script: |
# yarn
# displayName: Install dependencies
# - script: |
# yarn lint
# displayName: Lint
# - script: |
# yarn prettier
# displayName: Prettier
# - script: |
# yarn test
# displayName: Unit tests
# - script: |
# bash <(curl -s https://codecov.io/bash)
# displayName: Report coverage
# - script: |
# yarn test:e2e
# displayName: E2E tests
# - script: |
# yarn test:projects
# displayName: Project tests
# - script: |
# yarn test:circulars
# displayName: Circular dependency tests
# - script: |
# if [ $BUILD_SOURCEBRANCHNAME == 'master' ]; then
# yarn stats:build
# else
# echo 'skip bundle statistics collection'
# fi
# displayName: Bundle statistics (master only)
# - script: |
# if [ $BUILD_SOURCEBRANCHNAME == 'master' ]; then
# yarn perf
# else
# echo "Skipping performance tests"
# fi
# displayName: Performance tests (master only)
# - script: |
# if [ $BUILD_SOURCEBRANCHNAME == 'master' ]; then
# yarn stats:save --tag=`git tag --points-at HEAD`
# else
# echo 'skip saving statistics'
# fi
# env:
# STATS_URI: $(statsUri)
# displayName: Save statistics to DB (master only)
# - script: |
# if [ $BUILD_REASON == "PullRequest" ] && [ ! -z $DANGER_GITHUB_API_TOKEN ]; then
# yarn danger ci
# elif [ $BUILD_REASON != "PullRequest" ]; then
# echo "Skipping Danger JS because BUILD_REASON ${BUILD_REASON} != PullRequest"
# else
# echo "Skipping Danger JS because API token wasn't found"
# fi
# env:
# DANGER_GITHUB_API_TOKEN: $(dangerKey)
# displayName: Danger JS