forked from fidelisojeah/Hello-Books
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
26 lines (26 loc) · 813 Bytes
/
circle.yml
File metadata and controls
26 lines (26 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: 2
jobs:
build:
working_directory: ~/app
docker:
- image: circleci/node:8.4.0
environment:
PGHOST: 127.0.0.1
PGUSER: usrhello
NODE_ENV: test
- image: postgres:9.6.2-alpine
environment:
POSTGRES_USER: usrhello
POSTGRES_DB: dbhellobooks_test
POSTGRES_PASSWORD: HelloBooksPassword$
steps:
- checkout
- run: npm install
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run: ./cc-test-reporter before-build
- run: npm run test
- run: ./cc-test-reporter after-build --exit-code 0