-
-
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 6 commits
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
general: | ||
artifacts: | ||
- "build/test_images/" | ||
- "build/test_images_diff/" | ||
- build/test_images/ | ||
- build/test_images_diff/ | ||
|
||
machine: | ||
node: | ||
|
@@ -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 |
---|---|---|
|
@@ -28,12 +28,12 @@ | |
"build": "npm run preprocess && npm run bundle && npm run header && npm run stats", | ||
"cibuild": "npm run preprocess && node tasks/cibundle.js", | ||
"watch": "node tasks/watch.js", | ||
"lint": "eslint --version && eslint . || true", | ||
"lint-fix": "eslint . --fix", | ||
"lint": "eslint --version && eslint .", | ||
"lint-fix": "eslint . --fix || true", | ||
"docker": "node tasks/docker.js", | ||
"pretest": "node tasks/pretest.js", | ||
"test-jasmine": "karma start test/jasmine/karma.conf.js", | ||
"citest-jasmine": "karma start test/jasmine/karma.ciconf.js", | ||
"citest-jasmine": "CIRCLECI=0 karma start test/jasmine/karma.conf.js", | ||
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. TODO:
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. It would be better to fix whatever checks the 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. Oh right. Thanks for checking!
I kept Moreover, this should really be:
but funny story 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. Speaking of which it's probably not work bringing in |
||
"test-image": "node tasks/test_image.js", | ||
"test-image-gl2d": "node tasks/test_image.js gl2d_* --queue", | ||
"test-export": "node tasks/test_export.js", | ||
|
@@ -119,6 +119,7 @@ | |
"karma-coverage": "^1.0.0", | ||
"karma-firefox-launcher": "^1.0.0", | ||
"karma-jasmine": "^1.1.0", | ||
"karma-jasmine-spec-tags": "^1.0.1", | ||
"madge": "^1.6.0", | ||
"node-sass": "^4.5.0", | ||
"npm-link-check": "^1.2.0", | ||
|
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 |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ var Lib = require('@src/lib'); | |
var createGraphDiv = require('../assets/create_graph_div'); | ||
var destroyGraphDiv = require('../assets/destroy_graph_div'); | ||
var customMatchers = require('../assets/custom_matchers'); | ||
var hasWebGLSupport = require('../assets/has_webgl_support'); | ||
|
||
// cartesian click events events use the hover data | ||
// from the mousemove events and then simulate | ||
|
@@ -17,9 +16,7 @@ Plotly.register([ | |
require('@lib/contourgl') | ||
]); | ||
|
||
describe('Test hover and click interactions', function() { | ||
|
||
if(!hasWebGLSupport('gl2d_click_test')) return; | ||
describe('@noCI Test hover and click interactions', function() { | ||
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 one here should work on CI. I'll investigate. 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. done in #1459 |
||
|
||
var mock = require('@mocks/gl2d_14.json'); | ||
var mock2 = require('@mocks/gl2d_pointcloud-basic.json'); | ||
|
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