File tree 7 files changed +41
-29
lines changed
7 files changed +41
-29
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,16 @@ machine:
12
12
- docker
13
13
14
14
dependencies :
15
- pre :
16
- - eval $(node tasks/docker.js pull)
17
- post :
18
- - eval $(node tasks/docker.js run)
19
- - npm run cibuild
15
+ override :
16
+ - npm install && npm dedupe && npm prune && npm install
17
+ - npm ls || true
18
+ - npm run docker -- pull
20
19
- npm run pretest
21
- - eval $(node tasks/docker.js setup)
22
- - npm prune && npm ls
20
+ - npm run docker -- run
21
+ - npm run cibuild
22
+ - npm run docker -- setup
23
23
24
24
test :
25
25
override :
26
- - npm run test-image
27
- - npm run test-image-gl2d
28
- - npm run test-export
29
- - npm run citest-jasmine
30
- - npm run test-bundle
31
- - npm run test-syntax
32
- - eslint .
26
+ - ./tasks/ci_test.sh :
27
+ parallel : true
Original file line number Diff line number Diff line change 28
28
"build" : " npm run preprocess && npm run bundle && npm run header && npm run stats" ,
29
29
"cibuild" : " npm run preprocess && node tasks/cibundle.js" ,
30
30
"watch" : " node tasks/watch.js" ,
31
- "lint" : " eslint --version && eslint . || true " ,
32
- "lint-fix" : " eslint . --fix" ,
31
+ "lint" : " eslint --version && eslint ." ,
32
+ "lint-fix" : " eslint . --fix || true " ,
33
33
"docker" : " node tasks/docker.js" ,
34
34
"pretest" : " node tasks/pretest.js" ,
35
35
"test-jasmine" : " karma start test/jasmine/karma.conf.js" ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ EXIT_STATE=0
4
+
5
+ case $CIRCLE_NODE_INDEX in
6
+
7
+ 0)
8
+ npm run test-image || EXIT_STATE=$?
9
+ npm run test-image-gl2d || EXIT_STATE=$?
10
+ npm run test-export || EXIT_STATE=$?
11
+ npm run test-syntax || EXIT_STATE=$?
12
+ npm run lint || EXIT_STATE=$?
13
+ exit $EXIT_STATE
14
+ ;;
15
+
16
+ 1)
17
+ npm run citest-jasmine || EXIT_STATE=$?
18
+ npm run test-bundle || EXIT_STATE=$?
19
+ exit $EXIT_STATE
20
+ ;;
21
+
22
+ esac
Original file line number Diff line number Diff line change @@ -46,12 +46,5 @@ switch(arg) {
46
46
break ;
47
47
}
48
48
49
- // Log command string on CircleCI, to then `eval` them,
50
- // which appears to be more reliable then calling `child_process.exec()`
51
- if ( isCI ) {
52
- console . log ( cmd ) ;
53
- }
54
- else {
55
- console . log ( msg ) ;
56
- common . execCmd ( cmd , cb , errorCb ) ;
57
- }
49
+ console . log ( msg ) ;
50
+ common . execCmd ( cmd , cb , errorCb ) ;
Original file line number Diff line number Diff line change @@ -14,4 +14,6 @@ var cmd = containerCommands.getRunCmd(
14
14
) ;
15
15
16
16
console . log ( msg ) ;
17
- common . execCmd ( cmd ) ;
17
+ common . execCmd ( containerCommands . ping , function ( ) {
18
+ common . execCmd ( cmd ) ;
19
+ } ) ;
Original file line number Diff line number Diff line change @@ -14,4 +14,6 @@ var cmd = containerCommands.getRunCmd(
14
14
) ;
15
15
16
16
console . log ( msg ) ;
17
- common . execCmd ( cmd ) ;
17
+ common . execCmd ( containerCommands . ping , function ( ) {
18
+ common . execCmd ( cmd ) ;
19
+ } ) ;
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ containerCommands.setup = [
22
22
containerCommands . injectEnv ,
23
23
containerCommands . restart ,
24
24
'sleep 1' ,
25
- containerCommands . ping ,
26
- 'echo '
27
25
] . join ( ' && ' ) ;
28
26
29
27
containerCommands . dockerRun = [
You can’t perform that action at this time.
0 commit comments