2017-06-18 19:35:42 +00:00
|
|
|
language: java
|
|
|
|
jdk:
|
|
|
|
- oraclejdk8
|
2017-06-28 16:52:18 +00:00
|
|
|
deploy:
|
|
|
|
# deploy develop to the staging environment
|
|
|
|
- provider: script
|
2017-06-28 16:58:10 +00:00
|
|
|
script: chmod +x deploy.sh && sh deploy.sh staging
|
2017-06-28 16:52:18 +00:00
|
|
|
on:
|
|
|
|
branch: dev
|
2017-06-28 16:58:10 +00:00
|
|
|
skip_cleanup: true
|
2017-06-28 16:52:18 +00:00
|
|
|
# deploy master to production
|
|
|
|
- provider: script
|
2017-06-28 16:58:10 +00:00
|
|
|
script: chmod +x deploy.sh && sh deploy.sh production
|
2017-06-28 16:52:18 +00:00
|
|
|
on:
|
|
|
|
branch: master
|
2017-06-28 16:58:10 +00:00
|
|
|
skip_cleanup: true
|