2015-08-25 21:42:46 -04:00
|
|
|
image: ruby:2.1
|
|
|
|
services:
|
|
|
|
- postgres
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- gem install bundler
|
2016-04-15 06:18:46 -04:00
|
|
|
- bundle install
|
2015-08-25 21:42:46 -04:00
|
|
|
- bundle exec rake db:create
|
|
|
|
|
|
|
|
variables:
|
|
|
|
DB_NAME: postgres
|
|
|
|
|
|
|
|
types:
|
|
|
|
- test
|
|
|
|
- deploy
|
|
|
|
- notify
|
|
|
|
|
|
|
|
rspec:
|
|
|
|
script: "rake spec"
|
2016-04-15 06:18:46 -04:00
|
|
|
tags:
|
2015-08-25 21:42:46 -04:00
|
|
|
- ruby
|
|
|
|
- postgres
|
|
|
|
only:
|
|
|
|
- branches
|
|
|
|
|
|
|
|
spinach:
|
|
|
|
script: "rake spinach"
|
|
|
|
allow_failure: true
|
2016-04-15 06:18:46 -04:00
|
|
|
tags:
|
2015-08-25 21:42:46 -04:00
|
|
|
- ruby
|
|
|
|
- mysql
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
|
|
|
|
staging:
|
2016-04-15 06:18:46 -04:00
|
|
|
variables:
|
|
|
|
KEY1: value1
|
|
|
|
KEY2: value2
|
2015-08-25 21:42:46 -04:00
|
|
|
script: "cap deploy stating"
|
|
|
|
type: deploy
|
2016-04-15 06:18:46 -04:00
|
|
|
tags:
|
2016-01-14 13:45:43 -05:00
|
|
|
- ruby
|
|
|
|
- mysql
|
2015-08-25 21:42:46 -04:00
|
|
|
except:
|
|
|
|
- stable
|
|
|
|
|
|
|
|
production:
|
2016-04-15 06:18:46 -04:00
|
|
|
variables:
|
|
|
|
DB_NAME: mysql
|
2015-08-25 21:42:46 -04:00
|
|
|
type: deploy
|
2016-04-15 06:18:46 -04:00
|
|
|
script:
|
2015-08-25 21:42:46 -04:00
|
|
|
- cap deploy production
|
|
|
|
- cap notify
|
2016-04-15 06:18:46 -04:00
|
|
|
tags:
|
2016-01-14 13:45:43 -05:00
|
|
|
- ruby
|
|
|
|
- mysql
|
2015-08-25 21:42:46 -04:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^deploy-.*$/
|
|
|
|
|
|
|
|
dockerhub:
|
|
|
|
type: notify
|
|
|
|
script: "curl http://dockerhub/URL"
|
|
|
|
tags:
|
|
|
|
- ruby
|
|
|
|
- postgres
|
|
|
|
only:
|
|
|
|
- branches
|