diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-04-01 13:56:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-01 13:56:46 +0300 |
commit | 711f2c627aa3f275b99977117a140a8e119748cd (patch) | |
tree | aaad33dc22abfabb76b903da888560ba51654454 | |
parent | 2f19d78344606bf4cbf2157c91055170710722b5 (diff) |
Switch to CircleCI. (#125)
-rw-r--r-- | .circleci/config.yml | 68 | ||||
-rw-r--r-- | .travis.yml | 14 | ||||
-rw-r--r-- | README.md | 4 |
3 files changed, 70 insertions, 16 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..c5f7926 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,68 @@ +version: 2.1 + +aliases: + - &npm_cache_filename | + {{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}-{{ checksum "package-lock.json" }} + +commands: + install: + parameters: + install-commands: + description: "Steps that will be executed before the tests" + type: steps + default: [] + steps: + - checkout + - restore_cache: + key: *npm_cache_filename + name: Restoring npm modules + - run: node --version + - run: npm --version + +jobs: + node-6: + docker: + - image: circleci/node:6-stretch + steps: + - install + - run: npm install + - save_cache: + key: *npm_cache_filename + name: Save npm modules + paths: + - ./node_modules/ + - run: npm test + + node-8: + docker: + - image: circleci/node:8-stretch + steps: + - install + - run: npm ci + - save_cache: + key: *npm_cache_filename + name: Save npm modules + paths: + - /home/circleci/.npm + - run: npm test + + node-10: + docker: + - image: circleci/node:10-stretch + steps: + - install + - run: npm ci + - save_cache: + key: *npm_cache_filename + name: Save npm modules + paths: + - /home/circleci/.npm + - run: npm test + +workflows: + version: 2 + test: + jobs: + - node-6 + - node-8 + - node-10 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fa2b991..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: node_js -git: - depth: 3 -node_js: - - "6" - - "8" - - "10" -install: - - npm install -cache: - directories: - - node_modules -notifications: - email: false @@ -378,5 +378,5 @@ Code released under [the MIT license](https://github.com/twbs/rfs/blob/master/LI [npm-url]: https://npmjs.org/package/rfs [licence-image]: https://img.shields.io/npm/l/rfs.svg [license-url]: https://github.com/twbs/rfs/blob/master/LICENSE -[build-image]: https://img.shields.io/travis/twbs/rfs/master.svg -[build-url]: https://travis-ci.org/twbs/rfs +[build-image]: https://img.shields.io/circleci/project/gh/twbs/rfs/master.svg +[build-url]: https://circleci.com/gh/twbs/rfs |