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:
- docker
test:
dependencies:
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
test:
override:
- make test
## Customize deployment commands
# deployment:
# staging:
# branch: master
deployment:
production: # just a label; label names are completely up to you
branch: master
commands:
- docker info
- docker-compose up -d
## Custom notifications
# notify: