From e7ce3c6f22ed2c6bda552811d157c83d106ba722 Mon Sep 17 00:00:00 2001 From: Joe Purdy Date: Mon, 18 Mar 2019 14:38:41 -0700 Subject: [PATCH 1/3] add circleci configi --- .circleci/config.yml | 74 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .circleci/config.yml 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 From 6bd67230495f591067920c012a1e965e4bdc0c36 Mon Sep 17 00:00:00 2001 From: Joe Purdy Date: Mon, 18 Mar 2019 14:39:45 -0700 Subject: [PATCH 2/3] remove Travis-CI configi --- .travis.yml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .travis.yml 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 From 4a3b2def0d3755fa551b83f5225e41a92142ed90 Mon Sep 17 00:00:00 2001 From: Joe Purdy Date: Mon, 18 Mar 2019 14:40:46 -0700 Subject: [PATCH 3/3] update status badge --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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/).