Skip to content

Commit

Permalink
Migrate to circle 2
Browse files Browse the repository at this point in the history
  • Loading branch information
toddself committed Jul 12, 2018
1 parent 85284d8 commit fd3b4d9
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 8 deletions.
52 changes: 52 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:8-browsers

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run:
name: Authenticate with NPM
command: echo -e "//registry.npmjs.org/:_authToken="$NPM_TOKEN >> .npmrc

# temp workaround until browsers image is fixed
# libgconf-2.so.4 is required by chrome but no longer included in image
- run:
name: Install libgconf-2-4
command: sudo apt-get install libgconf-2-4

- run:
name: Install Dependencies
command: npm install

- run:
name: Running X virtual framebuffer
command: Xvfb :99 > /dev/null 2>&1 &
background: true

# run tests!
- run:
name: Executing tests
command: DISPLAY=:99 npm test

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

workflows:
version: 2
build_and_test:
jobs:
- build:
context: org-global
8 changes: 0 additions & 8 deletions circle.yml

This file was deleted.

0 comments on commit fd3b4d9

Please sign in to comment.