Skip to content

Commit

Permalink
ci(circle): Update cirlceci config - migration from Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
exactlyaron committed Jul 2, 2019
1 parent 3920367 commit 7632675
Showing 1 changed file with 38 additions and 13 deletions.
51 changes: 38 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,47 @@
#
version: 2
jobs:
build:
branches:
ignore:
- master

test:
docker:
# specify the version you desire here
- image: circleci/node:dubnium
# use node:lts
- image: circleci/node:lts
environment:
TZ: "Europe/London"

TZ: "Europe/London"
working_directory: ~/repo

steps:
- checkout
- run:
name: install
command: npm install
- run:
name: test
command: npm test
- run:
name: codecov
command: npm run coverage
release:
docker:
# use node:lts
- image: circleci/node:lts
environment:
TZ: "Europe/London"
working_directory: ~/repo
steps:
- checkout
# run semantic-release for GitHub & NPM release
- run:
name: release using semantic-release
command: npx semantic-release


- run: npm install
# run tests!
- run: npm test
workflows:
version: 2
test_and_release:
jobs:
- test
- release:
requires:
- test
filters:
branches:
only: master

0 comments on commit 7632675

Please sign in to comment.