Skip to content

Commit fa8adee

Browse files
committed
split image tests into 2 jobs
1 parent f07ff4b commit fa8adee

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.circleci/config.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,25 @@ jobs:
9797
- store_artifacts:
9898
path: build
9999

100+
test-image2:
101+
docker:
102+
- image: plotly/testbed:latest
103+
working_directory: /var/www/streambed/image_server/plotly.js/
104+
steps:
105+
- checkout
106+
- attach_workspace:
107+
at: /var/www/streambed/image_server/plotly.js/
108+
- run:
109+
name: Run and setup container
110+
command: |
111+
supervisord &
112+
npm run docker -- setup
113+
- run:
114+
name: Run image tests
115+
command: ./.circleci/test.sh image2
116+
- store_artifacts:
117+
path: build
118+
100119
test-syntax:
101120
docker:
102121
- image: circleci/node:8.9.4
@@ -123,6 +142,9 @@ workflows:
123142
- test-image:
124143
requires:
125144
- build
145+
- test-image2:
146+
requires:
147+
- build
126148
- test-syntax:
127149
requires:
128150
- build

.circleci/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ case $1 in
4141

4242
image)
4343
npm run test-image || EXIT_STATE=$?
44+
exit $EXIT_STATE
45+
;;
46+
47+
image2)
4448
npm run test-export || EXIT_STATE=$?
4549
npm run test-image-gl2d || EXIT_STATE=$?
4650
exit $EXIT_STATE

0 commit comments

Comments
 (0)