Skip to content
27 changes: 27 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
command: ./.circleci/test.sh image
- store_artifacts:
path: build
destination: /

test-image2:
docker:
Expand All @@ -107,6 +108,7 @@ jobs:
command: ./.circleci/test.sh image2
- store_artifacts:
path: build
destination: /
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice touch here 🎨


test-syntax:
docker:
Expand All @@ -120,6 +122,24 @@ jobs:
name: Run syntax tests
command: ./.circleci/test.sh syntax

publish:
docker:
- image: circleci/node:10.9.0
working_directory: ~/plotly.js
steps:
- checkout
- attach_workspace:
at: ~/plotly.js
- store_artifacts:
path: build/plotly.js
destination: /plotly.js
- store_artifacts:
path: dist/plotly.min.js
destination: /plotly.min.js
- store_artifacts:
path: dist/plot-schema.json
destination: /plot-schema.json

workflows:
version: 2
build-and-test:
Expand All @@ -140,3 +160,10 @@ workflows:
- test-syntax:
requires:
- build
- publish:
requires:
- test-jasmine
- test-jasmine2
- test-image
- test-image2
- test-syntax