diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..81b7090 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,29 @@ +version: 2 + +jobs: + test: + docker: + - image: circleci/node:11.10.1 + working_directory: ~/repo + steps: + - checkout + - restore_cache: + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: Install NPM Packages + command: | + npm install + - run: + name: Unit Tests + command: | + npm test + - save_cache: + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + +workflows: + version: 2 + test_databox: + jobs: + - test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bfab963..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -sudo: false -language: node_js -node_js: - - "0.12" diff --git a/README.md b/README.md index 7e1238a..198263e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # databox-js -[![Build Status](https://travis-ci.org/databox/databox-js.svg)](https://travis-ci.org/databox/databox-js) +![seanforyou23](https://circleci.com/gh/seanforyou23/databox-js.svg?style=shield) + [![npm version](https://badge.fury.io/js/databox.svg)](https://badge.fury.io/js/databox) ## Installation