From fd3b4d9ee1e884422819c67b4544e3df32380e6e Mon Sep 17 00:00:00 2001 From: Todd Kennedy Date: Thu, 12 Jul 2018 14:38:02 -0700 Subject: [PATCH] Migrate to circle 2 --- .circleci/config.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++ circle.yml | 8 ------- 2 files changed, 52 insertions(+), 8 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 circle.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..d0d09c2 --- /dev/null +++ b/.circleci/config.yml @@ -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 diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 1a3abef..0000000 --- a/circle.yml +++ /dev/null @@ -1,8 +0,0 @@ -machine: - node: - version: 6 -test: - override: - - npm run coverage - post: - - cp -r coverage/* $CIRCLE_ARTIFACTS/. || exit 0