diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..5308040 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,74 @@ +version: 2.1 + +commands: + runtests: + description: Run tests using npm + steps: + - run: + name: NodeJS version + command: node -v + + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }} + + - run: yarn install + + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }} + + # run tests! + - run: yarn test + +jobs: + node-current: + docker: + - image: circleci/node:current + + working_directory: ~/customerio-node + + steps: + - checkout + - runtests + + node-dubnium: # EOL 2021-04-01 + docker: + - image: circleci/node:dubnium + + working_directory: ~/customerio-node + + steps: + - checkout + - runtests + + node-carbon: # EOL 2019-12-31 + docker: + - image: circleci/node:carbon + + working_directory: ~/customerio-node + + steps: + - checkout + - runtests + + node-boron: # EOL 2019-04-01 + docker: + - image: circleci/node:boron + + working_directory: ~/customerio-node + + steps: + - checkout + - runtests + +workflows: + version: 2 + test: + jobs: + - node-current + - node-dubnium + - node-carbon + - node-boron diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 347bb44..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -sudo: false -language: node_js -node_js: - - 6 - - 8 - - 9 diff --git a/README.md b/README.md index 7c43071..0a774b7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -[![Build Status](https://travis-ci.org/customerio/customerio-node.svg)](https://travis-ci.org/customerio/customerio-node) - -# Customerio +# Customerio [![CircleCI](https://circleci.com/gh/customerio/customerio-node.svg?style=svg)](https://circleci.com/gh/customerio/customerio-node) A node client for the Customer.io [REST API](https://learn.customer.io/api/).