add circle ci, remove .travis.yml
Adds the git submodule update for the Realms submodule in addition to the usual Circle CI script
ADD
.circleci/config.yml
+version: 2.0
+jobs:
+ build:
+ docker:
+ - image: circleci/node:11
+ steps:
+ - checkout # special step to check out source code to working directory
+ - run:
+ name: Update npm
+ command: 'sudo npm install -g npm@latest'
+ - restore_cache: # special step to restore the dependency cache
+ # Read about caching dependencies: https://circleci.com/docs/2.0/caching/
+ key: dependency-cache-{{ checksum "package.json" }}
+ - run:
+ name: Install npm
+ command: npm install
+ - save_cache: # special step to save the dependency cache
+ key: dependency-cache-{{ checksum "package.json" }}
+ paths:
+ - ./node_modules
+ - run:
+ name: Git Submodule Update
+ command: git submodule update --init --recursive
+ - run:
+ name: Lint
+ command: npm run lint-check
+ - run:
+ name: Test
+ command: npm test

DELETE
.travis.yml
-language: node_js
-node_js:
- - "10"
-
-sudo: false
-
-install:
- - npm install
-
-env:
- - SCRIPT=test
- - SCRIPT=lint-check
- - SCRIPT=pretty-check
-
-script:
- - npm run $SCRIPT
-
-matrix:
- allow_failures:
- - env: SCRIPT=lint-check
- - env: SCRIPT=pretty-check
-
-after_success:
-# - npm run shim:coverage && npm run shim:coveralls

add circle ci, remove .travis.yml (#71)

Adds the git submodule update for the Realms submodule in addition to the usual Circle CI script