mirror of https://github.com/masayuki0812/c3.git
Quite good looking graph derived from d3.js
http://c3js.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.4 KiB
61 lines
1.4 KiB
version: 2 |
|
jobs: |
|
test: |
|
docker: |
|
- image: circleci/node:6-browsers |
|
env: |
|
- DISPLAY=:99 |
|
- CHROME_BIN=/usr/bin/google-chrome |
|
steps: |
|
- checkout |
|
- run: | |
|
echo "node $(node -v)" |
|
echo "npm v$(npm --version)" |
|
echo "$(google-chrome --version)" |
|
- restore_cache: |
|
key: deps-npm-{{ checksum "package.json" }} |
|
- run: npm install |
|
- save_cache: |
|
key: deps-npm-{{ checksum "package.json" }} |
|
paths: |
|
- ./node_modules |
|
- run: npm test |
|
- run: npm run codecov |
|
publish-docs: |
|
docker: |
|
- image: circleci/ruby:2.4-node |
|
env: |
|
BUNDLE_PATH: vendor/bundle |
|
steps: |
|
- checkout |
|
|
|
- restore_cache: |
|
key: deps-bundle-{{ checksum "Gemfile.lock" }} |
|
- run: bundle install |
|
- save_cache: |
|
key: deps-bundle-{{ checksum "Gemfile.lock" }} |
|
paths: |
|
- vendor/bundle |
|
|
|
- restore_cache: |
|
key: deps-npm-{{ checksum "package.json" }} |
|
- run: npm install |
|
- save_cache: |
|
key: deps-npm-{{ checksum "package.json" }} |
|
paths: |
|
- ./node_modules |
|
|
|
- run: npm run publish-docs |
|
workflows: |
|
version: 2 |
|
test: |
|
jobs: |
|
- test |
|
publish-docs: |
|
jobs: |
|
- publish-docs: |
|
filters: |
|
branches: |
|
ignore: /.*/ |
|
tags: |
|
only: /^v.*/
|
|
|