This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
forked from davidyaha/graphql-mqtt-subscriptions
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add initial circleci config, remove travis
- Loading branch information
Dara Hayes
committed
May 2, 2019
1 parent
a8a8bd4
commit 5993bc3
Showing
4 changed files
with
106 additions
and
11 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,104 @@ | ||
version: 2 | ||
jobs: | ||
test-node-6: | ||
working_directory: ~/aerogear | ||
docker: | ||
- image: circleci/node:6 | ||
steps: | ||
- checkout | ||
- run: | ||
name: install-dependencies | ||
command: npm install | ||
- run: | ||
name: run test | ||
command: npm run test | ||
- run: | ||
name: run lint | ||
command: npm run lint | ||
- run: | ||
name: run coverage | ||
command: npm run coverage | ||
- run: | ||
name: send coverage report to coveralls | ||
command: cat ./coverage/lcov.info | ./node_modules/.bin/coveralls | ||
test-node-8: | ||
working_directory: ~/aerogear | ||
docker: | ||
- image: circleci/node:8 | ||
steps: | ||
- checkout | ||
- run: | ||
name: install-dependencies | ||
command: npm install | ||
- run: | ||
name: run test | ||
command: npm run test | ||
- run: | ||
name: run lint | ||
command: npm run lint | ||
- run: | ||
name: run coverage | ||
command: npm run coverage | ||
- run: | ||
name: send coverage report to coveralls | ||
command: cat ./coverage/lcov.info | ./node_modules/.bin/coveralls | ||
test-node-10: | ||
working_directory: ~/aerogear | ||
docker: | ||
- image: circleci/node:10 | ||
steps: | ||
- checkout | ||
- run: | ||
name: install-dependencies | ||
command: npm install | ||
- run: | ||
name: run test | ||
command: npm run test | ||
- run: | ||
name: run lint | ||
command: npm run lint | ||
- run: | ||
name: run coverage | ||
command: npm run coverage | ||
- run: | ||
name: send coverage report to coveralls | ||
command: cat ./coverage/lcov.info | ./node_modules/.bin/coveralls | ||
npm_publish: | ||
working_directory: ~/aerogear | ||
docker: | ||
# Node 8 LTS | ||
- image: circleci/node:lts | ||
steps: | ||
- checkout | ||
# Allows us to authenticate with the npm registry | ||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc | ||
- run: CI=true npm run release:prep | ||
- run: TAG=$CIRCLE_TAG npm run release:validate | ||
- run: TAG=$CIRCLE_TAG npm run publish | ||
|
||
workflows: | ||
version: 2 | ||
build_and_release: | ||
jobs: | ||
- test-node-6: | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- test-node-8: | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- test-node-10: | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- npm_publish: | ||
requires: | ||
- test-node-6 | ||
- test-node-8 | ||
- test-node-10 | ||
filters: | ||
tags: | ||
only: /.*/ # allow anything because tag syntax is validated as part of validate-release.sh | ||
branches: | ||
ignore: /.*/ |
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ dist | |
coverage | ||
typings | ||
npm-debug.log | ||
package-lock.json |
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