From 02096573ca5cbf3882cd54d3ad08b76fb57a4a31 Mon Sep 17 00:00:00 2001 From: Ethan Selzer Date: Mon, 27 Aug 2018 22:19:20 -0700 Subject: [PATCH] Upgrade circleci to v2.0 --- .circleci/config.yml | 21 +++++++++++++++++++++ circle.yml | 20 -------------------- 2 files changed, 21 insertions(+), 20 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 00000000..9c9f2a7e --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,21 @@ +version: 2 +jobs: + build: + working_directory: ~/react-cursor-position + branches: + ignore: + - gh-pages + docker: + - image: circleci/node:10.9.0 + steps: + - checkout + - run: + name: install-npm + command: npm install + - save_cache: + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + - run: + name: test + command: npm run test-ci diff --git a/circle.yml b/circle.yml deleted file mode 100644 index e08275e0..00000000 --- a/circle.yml +++ /dev/null @@ -1,20 +0,0 @@ -general: - branches: - ignore: - - gh-pages # list of branches to ignore - -machine: - node: - version: v6.1.0 - environment: - PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin" - -dependencies: - override: - - yarn - cache_directories: - - ~/.cache/yarn - -test: - override: - - yarn test-ci