diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..57c761217 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,39 @@ +version: 2 +jobs: + build-and-test: + docker: + - image: circleci/node:6.14.3-browsers + environment: + LANG: en_US.UTF-8 + steps: + - checkout + - run: + name: Update Yarn + command: 'sudo npm update -g yarn' + - restore-cache: + name: Restore Yarn Package Cache + keys: + - yarn-packages-{{ checksum "yarn.lock" }} + - run: + name: Install Dependencies + command: yarn install --pure-lockfile + - save-cache: + name: Save Yarn Package Cache + key: yarn-packages-{{ checksum "yarn.lock" }} + paths: + - ~/.cache/yarn + - run: + name: Check + command: yarn check + - run: + name: Tests + command: yarn test:ci + - run: + name: Generate Coverage + command: yarn test:coverage + +workflows: + version: 2 + build-test-report: + jobs: + - build-and-test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a3bad48c1..000000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: -- 0.10 \ No newline at end of file diff --git a/circle.yml b/circle.yml deleted file mode 100644 index ed9e2f5a7..000000000 --- a/circle.yml +++ /dev/null @@ -1,16 +0,0 @@ -machine: - node: - version: v6.10.0 - environment: - PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin" -dependencies: - override: - - yarn install --pure-lockfile - cache_directories: - - ~/.cache/yarn -test: - override: - - yarn check - - yarn test:ci - post: - - yarn test:coverage \ No newline at end of file