diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..2acdaf0 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,47 @@ +# Javascript Node CircleCI 2.0 configuration file +# +# Check {{ '/2.0/language-javascript/' | docs_url }} for more details +# +version: 2 + +defaults: &defaults + working_directory: ~/repo + docker: + - image: cimg/node:14.16.0-browsers + +jobs: + test-build: + <<: *defaults + steps: + - checkout + + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + - v1-dependencies- + + - run: npm install + - run: + name: Run tests + command: npm test + - run: + name: Run build + command: npm run build + + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} + + - persist_to_workspace: + root: ~/repo + paths: . + +workflows: + version: 2 + test-build-deploy: + jobs: + - test-build: + filters: + tags: + only: /^v.*/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 724a48c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - 12.10.0 -before_script: - - npm install -g grunt-cli - - npm install -cache: - npm: false