mirror of
https://github.com/yldio/copilot.git
synced 2024-11-30 23:20:06 +02:00
ci: deploy on commit to master if tests pass
This commit is contained in:
parent
b9ccacbad9
commit
be1f1a20be
18
circle.yml
18
circle.yml
@ -7,16 +7,24 @@ machine:
|
|||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
test:
|
dependencies:
|
||||||
pre:
|
pre:
|
||||||
|
- npm install -g triton
|
||||||
|
- echo '{"url":"https://eu-ams-1.api.joyent.com","account":"'$SDC_ACCOUNT'","keyId":"c3:30:35:9b:85:48:73:44:31:cc:4b:2e:6a:00:16:e2","name":"eu-ams-1","curr":true}' | triton profile create -f -
|
||||||
|
- ./bin/setup.sh
|
||||||
|
override:
|
||||||
- make install
|
- make install
|
||||||
|
|
||||||
|
test:
|
||||||
override:
|
override:
|
||||||
- make test
|
- make test
|
||||||
|
|
||||||
## Customize deployment commands
|
deployment:
|
||||||
# deployment:
|
production: # just a label; label names are completely up to you
|
||||||
# staging:
|
branch: master
|
||||||
# branch: master
|
commands:
|
||||||
|
- docker info
|
||||||
|
- docker-compose up -d
|
||||||
|
|
||||||
## Custom notifications
|
## Custom notifications
|
||||||
# notify:
|
# notify:
|
||||||
|
Loading…
Reference in New Issue
Block a user