-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* start configuring for circleci workflows * more config tweaks * force * force * try to run test as workflow * try circle1 * try again * try to build * shift build * simple build again * try adding workflows again * tweak circelci * tweak circelci * workflow tweak * add fan out * cache node_modules * test both versions of node fetch * chrome headless tests * try circleci docker with browsers * firefox and lint * added deploy step * final tweaks to tasks
- Loading branch information
1 parent
1b4ec3d
commit a7995c4
Showing
5 changed files
with
108 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
version: 2.0 | ||
jobs: | ||
checkout_code: | ||
docker: | ||
- image: circleci/node:8.9.0 | ||
steps: | ||
- checkout | ||
- run: npm install | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules | ||
|
||
lint: | ||
docker: | ||
- image: circleci/node:8.9.0 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: make lint | ||
|
||
nodefetch2: | ||
docker: | ||
- image: circleci/node:8.9.0 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: make coverage-report | ||
|
||
nodefetch1: | ||
docker: | ||
- image: circleci/node:8.9.0 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: npm install node-fetch@1 | ||
- run: make test-unit | ||
|
||
chrome: | ||
docker: | ||
- image: circleci/node:8.9.0-browsers | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: make test-chrome | ||
|
||
firefox: | ||
docker: | ||
- image: circleci/node:8.9.0-browsers | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: npm install karma-firefox-launcher | ||
- run: make test-firefox | ||
|
||
deploy: | ||
docker: | ||
- image: circleci/node:8.9.0 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: npm version --no-git-tag-version ${CIRCLE_TAG} | ||
- run: npm publish --access public | ||
|
||
workflows: | ||
version: 2 | ||
checkout_and_test: | ||
jobs: | ||
- checkout_code | ||
- nodefetch1: | ||
requires: | ||
- checkout_code | ||
- nodefetch2: | ||
requires: | ||
- checkout_code | ||
- chrome: | ||
requires: | ||
- checkout_code | ||
- firefox: | ||
requires: | ||
- checkout_code | ||
- lint: | ||
requires: | ||
- checkout_code | ||
- deploy: | ||
requires: | ||
- nodefetch1 | ||
- nodefetch2 | ||
- chrome | ||
- firefox | ||
- lint | ||
filters: | ||
tags: | ||
only: /v.*/ | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters