Skip to content

Commit

Permalink
ci(circle): Add CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
exactlyaron committed Jul 8, 2019
1 parent 2412e11 commit 54901b1
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
test:
docker:
# use node:lts
- image: circleci/node:lts
environment:
TZ: "Europe/London"
PG_CONNECTION_STRING: postgres://postgres:postgres@localhost:5432/circle_test
# use postgres 9.6
- image: circleci/postgres:9.6-alpine-postgis
environment:
POSTGRES_USER: postgres
POSTGRES_DB: circle_test
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:
name: install
command: npm install
- run:
name: release
command: npx semantic-release


workflows:
version: 2
test_and_release:
jobs:
- test
- release:
requires:
- test
filters:
branches:
only: master

0 comments on commit 54901b1

Please sign in to comment.