Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
chore: add initial circleci config, remove travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Dara Hayes committed May 2, 2019
1 parent a8a8bd4 commit 5993bc3
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 11 deletions.
104 changes: 104 additions & 0 deletions .circleci/config.yml
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: /.*/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
coverage
typings
npm-debug.log
package-lock.json
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@types/simple-mock": "0.0.27",
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"coveralls": "^3.0.3",
"graphql": "^0.10.1",
"istanbul": "1.0.0-alpha.2",
"mocha": "^3.0.0",
Expand Down

0 comments on commit 5993bc3

Please sign in to comment.