forked from bugsnag/bugsnag-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.yml
147 lines (131 loc) · 5.04 KB
/
pipeline.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
steps:
#
# License audit
#
- label: ":copyright: License Audit"
timeout_in_minutes: 20
agents:
queue: opensource-mac-cocoa-11
env:
DEVELOPER_DIR: "/Applications/Xcode12.app"
command: scripts/license_finder.sh
#
# Android builder base - used by React Native and React Native CLI
#
- label: ":docker: Build Android Builder base image"
key: "android-builder-base"
timeout_in_minutes: 30
plugins:
- docker-compose#v3.9.0:
build: android-builder-base
image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
cache-from: android-builder-base:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:android-builder-base
- docker-compose#v3.9.0:
push: android-builder-base:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:android-builder-base
#
# Publish/package notifier
#
- label: ":docker: Prepare package.json"
key: "package-js"
timeout_in_minutes: 3
plugins:
- docker-compose#v3.9.0:
run: minimal-packager
artifact_paths: min_packages.tar
- label: ":docker: Build and publish JS packages"
key: "publish-js"
timeout_in_minutes: 30
plugins:
- docker-compose#v3.9.0:
build: publisher
image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
- label: ":aws-lambda: AWS Lambda tests"
timeout_in_minutes: 35
agents:
queue: "opensource-mac-cocoa-10.15"
commands:
# force the NPM registry as the default on CI is artifactory, which can't
# currently install from our lockfile
- npm ci --registry https://registry.npmjs.org
- cd test/aws-lambda
- bundle install
- bundle exec maze-runner
#
# Core tests and checks
#
- label: ":docker: Build CI image"
key: "ci-image"
depends_on: "package-js"
timeout_in_minutes: 20
plugins:
- artifacts#v1.5.0:
download: min_packages.tar
- docker-compose#v3.9.0:
build:
- ci
image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
cache-from:
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base-${BRANCH_NAME}
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base
- docker-compose#v3.9.0:
push:
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base-${BRANCH_NAME}
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base
- label: "Lint"
depends_on: "ci-image"
timeout_in_minutes: 10
plugins:
docker-compose#v3.9.0:
run: ci
command: "npm run test:lint"
- label: "Unit tests"
depends_on: "ci-image"
timeout_in_minutes: 10
plugins:
docker-compose#v3.9.0:
run: ci
command: "npm run test:unit"
- label: "Type checks/tests"
depends_on: "ci-image"
timeout_in_minutes: 10
plugins:
docker-compose#v3.9.0:
run: ci
command: "npm run test:types"
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: BROWSER STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
depends_on: "package-js"
commands:
- buildkite-agent pipeline upload .buildkite/browser-pipeline.yml
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: ELECTRON STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
commands:
- buildkite-agent pipeline upload .buildkite/electron-pipeline.yml
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: NODE STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
depends_on: "package-js"
commands:
- buildkite-agent pipeline upload .buildkite/node-pipeline.yml
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE (ANDROID) STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
depends_on:
- "publish-js"
- "android-builder-base"
commands:
- buildkite-agent pipeline upload .buildkite/react-native-android-pipeline.yml
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE (IOS) STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
depends_on:
- "publish-js"
commands:
- buildkite-agent pipeline upload .buildkite/react-native-ios-pipeline.yml
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE CLI STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
depends_on:
- "publish-js"
- "android-builder-base"
commands:
- buildkite-agent pipeline upload .buildkite/react-native-cli-pipeline.yml
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: EXPO PIPELINE :large_blue_circle: :large_blue_circle: :large_blue_circle:"
depends_on: "publish-js"
trigger: "bugsnag-expo"
build:
env:
BUGSNAG_JS_BRANCH: "${BUILDKITE_BRANCH}"
BUGSNAG_JS_COMMIT: "${BUILDKITE_COMMIT}"
# a branch name that"s safe to use as a docker cache identifier
BUGSNAG_JS_CACHE_SAFE_BRANCH_NAME: "${BRANCH_NAME}"