From a5a0d38eabbcea5ed9157a8ffb1cc936dee5d698 Mon Sep 17 00:00:00 2001 From: Kate Sills Date: Tue, 26 Feb 2019 12:22:13 -0800 Subject: [PATCH 1/2] remove .travis.yml, add .circleci/config.yml --- .circleci/config.yml | 14 ++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..5efc702c4b --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,14 @@ +version: 2.0 +jobs: + build: + docker: + - image: circleci/node:11 + steps: + - run: + name: Lint + command: | + npm run lint + - run: + name: Tests + command: | + npm run test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7c95ad2b6e..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: node_js -node_js: - - "10" - -sudo: false - -install: - - npm install - -script: - - npm run format - - npm run lint - - npm run test From e76fd5bb7562960eb5d5d8fa943dbbb05915c55f Mon Sep 17 00:00:00 2001 From: Kate Sills Date: Tue, 26 Feb 2019 12:49:16 -0800 Subject: [PATCH 2/2] add npm and caching of node_modules --- .circleci/config.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5efc702c4b..04e532796f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,11 +4,23 @@ jobs: docker: - image: circleci/node:11 steps: + - checkout # special step to check out source code to working directory + - run: + name: Update npm + command: 'sudo npm install -g npm@latest' + - restore_cache: # special step to restore the dependency cache + # Read about caching dependencies: https://circleci.com/docs/2.0/caching/ + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: Install npm + command: npm install + - save_cache: # special step to save the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules - run: name: Lint - command: | - npm run lint + command: npm run lint - run: - name: Tests - command: | - npm run test + name: Test + command: npm test