-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
CircleCI with Ubuntu 14.04, 2x parallelism and WebGL jasmine tests #1455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
0e3c61f
aa1aaef
62d33b9
100b993
14621e1
b42f021
8d7171f
b86bf06
631533d
dbc6ca1
e52f020
33ae963
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,21 +12,16 @@ machine: | |
- docker | ||
|
||
dependencies: | ||
pre: | ||
- eval $(node tasks/docker.js pull) | ||
post: | ||
- eval $(node tasks/docker.js run) | ||
- npm run cibuild | ||
override: | ||
- npm install && npm dedupe && npm prune && npm install | ||
- npm ls || true | ||
- npm run docker -- pull | ||
- npm run pretest | ||
- eval $(node tasks/docker.js setup) | ||
- npm prune && npm ls | ||
- npm run docker -- run | ||
- npm run cibuild | ||
- npm run docker -- setup | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Notice the docker commands are split between other commands. This is reduce the risk of race conditions. |
||
|
||
test: | ||
override: | ||
- npm run test-image | ||
- npm run test-image-gl2d | ||
- npm run test-export | ||
- npm run citest-jasmine | ||
- npm run test-bundle | ||
- npm run test-syntax | ||
- eslint . | ||
- ./tasks/ci_test.sh: | ||
parallel: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
EXIT_STATE=0 | ||
|
||
case $CIRCLE_NODE_INDEX in | ||
|
||
0) | ||
npm run test-image || EXIT_STATE=$? | ||
npm run test-image-gl2d || EXIT_STATE=$? | ||
npm run test-export || EXIT_STATE=$? | ||
npm run test-syntax || EXIT_STATE=$? | ||
npm run lint || EXIT_STATE=$? | ||
exit $EXIT_STATE | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Important: I chose this Does anyone know a better way to do this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks good to me. Bash scripting is always a bit weird. |
||
;; | ||
|
||
1) | ||
npm run citest-jasmine || EXIT_STATE=$? | ||
npm run test-bundle || EXIT_STATE=$? | ||
exit $EXIT_STATE | ||
;; | ||
|
||
esac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This thing here is (a lot) more predictable than simply
npm install
cc @bpostlethwaite @scjody