1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00

ci: deploy on commit to master if tests pass

This commit is contained in:
Tom Gallacher 2016-10-18 11:00:25 +01:00
parent b9ccacbad9
commit be1f1a20be

View File

@ -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: