Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: switch from the unrelieable travis-ci to circleci
- Loading branch information
Showing
4 changed files
with
61 additions
and
23 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,58 @@ | ||
version: 2 | ||
jobs: | ||
qa: | ||
docker: | ||
- image: circleci/node:8 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install dependencies | ||
command: yarn install --frozen-lockfile | ||
- run: | ||
name: Compile modules | ||
command: yarn compile | ||
- run: | ||
name: Run linters | ||
command: yarn lint | ||
- run: | ||
name: Run tests and calculate code coverage | ||
command: yarn coverage | ||
- run: | ||
name: Publish code coverage report | ||
command: yarn publish-coverage | ||
npm-publish: | ||
docker: | ||
- image: circleci/node:8 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install dependencies | ||
command: yarn install --frozen-lockfile | ||
- run: | ||
name: Login to npm | ||
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc | ||
- run: | ||
name: Compile modules | ||
command: yarn compile | ||
- run: | ||
name: Publish npm modules | ||
command: npm publish | ||
|
||
workflows: | ||
version: 2 | ||
qa-npm: | ||
jobs: | ||
- qa: | ||
# Run for all branches and all tags | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- npm-publish: | ||
requires: | ||
- qa | ||
# Run only for tags starting with a v, don't run for branches | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ |
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