-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
45 lines (40 loc) · 1.06 KB
/
circle.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
## circle.yml
machine:
node:
version: 6.2.2
java:
version: openjdk7
environment:
NODE_ENV: test
services:
- docker
general:
branches:
only:
- master
- dev
- test.*
dependencies:
pre:
- npm install -g npm
- npm install
- sudo pip install awscli
- aws configure set default.region eu-west-1
- aws configure set default.output json
- eval $(aws ecr get-login --region eu-west-1)
test:
# pre:
# - npm run dist:staging
# - docker pull $EXTERNAL_API_REGISTRY-dev:latest
# - docker run -d --net host -e PG_URL=postgres://ubuntu:@127.0.0.1:5432/circle_test $EXTERNAL_API_REGISTRY-dev:latest npm run start:test
override:
- npm run lint
deployment:
prod:
branch: master
commands:
- BUCKET=dih.capra.me NODE_ENV=production npm run deploy:production
staging:
branch: dev
commands:
- BUCKET=staging.dih.capra.me NODE_ENV=production npm run deploy:staging