diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..04e532796f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +version: 2.0 +jobs: + build: + 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 + - run: + name: Test + command: npm 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