Skip to content

Commit db127b4

Browse files
authored
Switch CI to buildkite (bugsnag#476)
* Add buildkite * Remove travis.yml * Add browser test step * Correct container name * Alpine doesn't do that * Add bash * Browser container needs bash too * The tunnel won't start by itself * Move to ecr * Use in built plugin * Updates * Updates * Updates * Updates * Try array of plugins * Push to latest and branch * Use external maze-runner image * Not basic * Try tunnel in same container * Use tunnel id * browserstack needs glibc * Add builders * Getting bs local working on alpine? * Add libstdc++ * Try different libc compat * Does this work on buildkite though? * Enable all the browser tests * WIP * Add dockerfile * ... * update buildkite pipeline * Tweak * Tweak * Use the registry to cache images * Maze runner has that command already * Don't think i'll every understand yaml * wait * Use cache? * Update node maze tests * Fix browser dockerfile * Speeds * Build all up front * Build all up front * Build all up front * Build all up front * Push it real good * Try no browser * Upgrade compose file version * Thats what I get for looking at master * Re enable chrome tests * Missed a dash * Facepalm * Dont need browser network * Faster iteration * Enable verbose * Run a subset * Try this * Try this * Restrict copy * Restrict copy * Restrict copy * Restrict copy * Roll back * Roll back * Use fork of plugin * New plugin version * New plugin version * Run all tests again * Add more node tests * Test names * Back to just node 10 * Dont build browser for now * Node 8 * Try compose project name * Pass the project through * More tests * Improve caching and also disable koa on old nodes * fix(node): Flatten nested scopes in output to support bundling with webpack The dist node bundle format did not support being consumed in a webpack bundle, because there was too much nesting/dynamicism in the require() calls. Applying the browser-pack-flat plugin results in fewer nested scopes such that only the external require()s are left – and these get properly picked up by webpack. Fixes bugsnag#441. * chore: Update changelog * Try to make ux easier for local dev * Improvements * Fix * speed up for testing * speed up for testing * speed up for testing * speed up for testing * speed up for testing * Debug mode * Debug mode * Debug mode * run all tests on node 10 * All tests * Disable verbose mode * V2 maze * Initial fixes * Delivery tests * Test * Wip * Revert local change * Try this * Disable some browsers for speed * Try localhost * Add a test suite * Concurrency limit * Add more platforms * Concurrency of browser tests * Full test suite * Attempt parallelism * Remove iphone for now * Back to localhost endpoint * This works in dev * Use aliases * Indentation * ie11 test * Use the cache properly * test: Move end-to-end tests out of packages directory This update means that changing the tests and fixtures invalidates the test image cache less frequently, which means less waiting around in development. * test: Ensure test fixture html is interpreted as utf8 * docs: Update docs based on new test setup * chore: Typos
1 parent 192f2f3 commit db127b4

File tree

316 files changed

+6636
-4123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

316 files changed

+6636
-4123
lines changed

.buildkite/pipeline.yml

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
steps:
2+
- label: ':docker: Build CI image'
3+
plugins:
4+
- docker-compose#v2.6.0:
5+
build:
6+
- ci
7+
image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
8+
cache-from:
9+
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BUILDKITE_BRANCH}
10+
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-latest
11+
- docker-compose#v2.6.0:
12+
push:
13+
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BUILDKITE_BRANCH}
14+
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-latest
15+
16+
- wait
17+
18+
- label: 'Lint'
19+
plugins:
20+
docker-compose#v2.6.0:
21+
run: ci
22+
command: 'npm run test:lint'
23+
24+
- label: 'Unit tests'
25+
plugins:
26+
docker-compose#v2.6.0:
27+
run: ci
28+
command: 'npm run test:unit'
29+
30+
- label: 'Type checks/tests'
31+
plugins:
32+
docker-compose#v2.6.0:
33+
run: ci
34+
command: 'npm run test:types'
35+
36+
- label: ':docker: Build browser maze runner image'
37+
plugins:
38+
- docker-compose#v2.6.0:
39+
build:
40+
- browser-maze-runner
41+
image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
42+
cache-from:
43+
- browser-maze-runner:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BUILDKITE_BRANCH}
44+
45+
- label: ':docker: Build node maze runner image'
46+
plugins:
47+
- docker-compose#v2.6.0:
48+
build:
49+
- node-maze-runner
50+
image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
51+
cache-from:
52+
- node-maze-runner:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BUILDKITE_BRANCH}
53+
54+
- wait
55+
56+
- label: ':chrome: v43 Browser tests'
57+
plugins:
58+
docker-compose#v2.6.0:
59+
run: browser-maze-runner
60+
use-aliases: true
61+
env:
62+
BROWSER: "chrome_43"
63+
concurrency: 5
64+
concurrency_group: 'browserstack'
65+
66+
- label: ':chrome: v61 Browser tests'
67+
plugins:
68+
docker-compose#v2.6.0:
69+
run: browser-maze-runner
70+
use-aliases: true
71+
env:
72+
BROWSER: "chrome_61"
73+
concurrency: 5
74+
concurrency_group: 'browserstack'
75+
76+
- label: ':ie: v8 Browser tests'
77+
plugins:
78+
docker-compose#v2.6.0:
79+
run: browser-maze-runner
80+
use-aliases: true
81+
env:
82+
BROWSER: "ie_8"
83+
concurrency: 5
84+
concurrency_group: 'browserstack'
85+
86+
- label: ':ie: v9 Browser tests'
87+
plugins:
88+
docker-compose#v2.6.0:
89+
run: browser-maze-runner
90+
use-aliases: true
91+
env:
92+
BROWSER: "ie_9"
93+
concurrency: 5
94+
concurrency_group: 'browserstack'
95+
96+
- label: ':ie: v10 Browser tests'
97+
plugins:
98+
docker-compose#v2.6.0:
99+
run: browser-maze-runner
100+
use-aliases: true
101+
env:
102+
BROWSER: "ie_10"
103+
concurrency: 5
104+
concurrency_group: 'browserstack'
105+
106+
- label: ':ie: v11 Browser tests'
107+
plugins:
108+
docker-compose#v2.6.0:
109+
run: browser-maze-runner
110+
use-aliases: true
111+
env:
112+
BROWSER: "ie_11"
113+
HOST: 'localhost' # IE11 needs the host set to localhost for some reason!ß
114+
concurrency: 5
115+
concurrency_group: 'browserstack'
116+
117+
- label: ':edge: v14 Browser tests'
118+
plugins:
119+
docker-compose#v2.6.0:
120+
run: browser-maze-runner
121+
use-aliases: true
122+
env:
123+
BROWSER: "edge_14"
124+
concurrency: 5
125+
concurrency_group: 'browserstack'
126+
127+
- label: ':edge: v15 Browser tests'
128+
plugins:
129+
docker-compose#v2.6.0:
130+
run: browser-maze-runner
131+
use-aliases: true
132+
env:
133+
BROWSER: "edge_15"
134+
concurrency: 5
135+
concurrency_group: 'browserstack'
136+
137+
- label: ':safari: v6 Browser tests'
138+
plugins:
139+
docker-compose#v2.6.0:
140+
run: browser-maze-runner
141+
use-aliases: true
142+
env:
143+
BROWSER: "safari_6"
144+
concurrency: 5
145+
concurrency_group: 'browserstack'
146+
147+
- label: ':safari: v10 Browser tests'
148+
plugins:
149+
docker-compose#v2.6.0:
150+
run: browser-maze-runner
151+
use-aliases: true
152+
env:
153+
BROWSER: "safari_10"
154+
concurrency: 5
155+
concurrency_group: 'browserstack'
156+
157+
- label: ':desktop_computer: Opera v12 Browser tests'
158+
plugins:
159+
docker-compose#v2.6.0:
160+
run: browser-maze-runner
161+
use-aliases: true
162+
env:
163+
BROWSER: "opera_12"
164+
concurrency: 5
165+
concurrency_group: 'browserstack'
166+
167+
- label: ':iphone: iOS 10.3 Browser tests'
168+
plugins:
169+
docker-compose#v2.6.0:
170+
run: browser-maze-runner
171+
use-aliases: true
172+
env:
173+
BROWSER: "iphone_7"
174+
concurrency: 5
175+
concurrency_group: 'browserstack'
176+
177+
- label: ':android: Samsung Galaxy S8 Browser tests'
178+
plugins:
179+
docker-compose#v2.6.0:
180+
run: browser-maze-runner
181+
use-aliases: true
182+
env:
183+
BROWSER: "android_s8"
184+
concurrency: 5
185+
concurrency_group: 'browserstack'
186+
187+
- label: ':firefox: v30 Browser tests'
188+
plugins:
189+
docker-compose#v2.6.0:
190+
run: browser-maze-runner
191+
use-aliases: true
192+
env:
193+
BROWSER: "firefox_30"
194+
concurrency: 5
195+
concurrency_group: 'browserstack'
196+
197+
- label: ':firefox: v56 Browser tests'
198+
plugins:
199+
docker-compose#v2.6.0:
200+
run: browser-maze-runner
201+
use-aliases: true
202+
env:
203+
BROWSER: "firefox_56"
204+
concurrency: 5
205+
concurrency_group: 'browserstack'
206+
207+
- label: ':node: Node 4'
208+
plugins:
209+
docker-compose#v2.6.0:
210+
run: node-maze-runner
211+
use-aliases: true
212+
env:
213+
NODE_VERSION: "4"
214+
command: '-e koa.feature -e koa-1x.feature -e webpack.feature'
215+
216+
- label: ':node: Node 6'
217+
plugins:
218+
docker-compose#v2.6.0:
219+
run: node-maze-runner
220+
use-aliases: true
221+
env:
222+
NODE_VERSION: "6"
223+
command: '-e koa.feature -e koa-1x.feature'
224+
225+
- label: ':node: Node 8'
226+
plugins:
227+
docker-compose#v2.6.0:
228+
run: node-maze-runner
229+
use-aliases: true
230+
env:
231+
NODE_VERSION: "8"
232+
233+
- label: ':node: Node 10'
234+
plugins:
235+
docker-compose#v2.6.0:
236+
run: node-maze-runner
237+
use-aliases: true
238+
env:
239+
NODE_VERSION: "10"

.dockerignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules
2+
.git
3+
examples
4+
**/node_modules
5+
lerna-debug.log
6+
npm-debug.log
7+
Dockerfile
8+
Dockerfile*
9+
docker-compose.yml
10+
**/*.tgz
11+
.buildkite

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ coverage
55
dist
66
.DS_Store
77
maze_output
8-
*.ngsummary.json
8+
*.ngsummary.json

.travis.yml

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)