mirror of https://github.com/masayuki0812/c3.git
Browse Source
* Add CircleCI 2.0 config * Fix cache key prefix * Delete an old circle config * [band-aid solution] Skip an axis testpull/2176/head
Ryo Shibayama
7 years ago
committed by
Yoshiya Hinosawa
3 changed files with 30 additions and 10 deletions
@ -0,0 +1,29 @@ |
|||||||
|
version: 2 |
||||||
|
jobs: |
||||||
|
build: |
||||||
|
working_directory: ~/working_directory |
||||||
|
docker: |
||||||
|
- image: circleci/node:6-browsers |
||||||
|
env: |
||||||
|
- DISPLAY=:99 |
||||||
|
- CHROME_BIN=/usr/bin/google-chrome |
||||||
|
steps: |
||||||
|
- checkout |
||||||
|
- run: |
||||||
|
name: System information |
||||||
|
command: | |
||||||
|
echo "node $(node -v)" |
||||||
|
echo "npm v$(npm --version)" |
||||||
|
echo "$(google-chrome --version)" |
||||||
|
- restore_cache: |
||||||
|
key: v1-npm-dependencies-{{ .Branch }}-{{ checksum "package.json" }} |
||||||
|
- run: |
||||||
|
name: Install dependencies |
||||||
|
command: npm install |
||||||
|
- save_cache: |
||||||
|
key: v1-npm-dependencies-{{ .Branch }}-{{ checksum "package.json" }} |
||||||
|
paths: |
||||||
|
- ./node_modules |
||||||
|
- run: |
||||||
|
name: Run Tests |
||||||
|
command: npm run test |
@ -1,9 +0,0 @@ |
|||||||
machine: |
|
||||||
node: |
|
||||||
version: 6 |
|
||||||
dependencies: |
|
||||||
pre: |
|
||||||
- curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb |
|
||||||
- sudo dpkg -i google-chrome.deb |
|
||||||
- sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome |
|
||||||
- rm google-chrome.deb |
|
Loading…
Reference in new issue