gitlab-org--gitlab-foss/spec/support/gitlab_stubs/gitlab_ci.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
843 B
YAML
Raw Normal View History

image: image:1.0
2015-08-25 21:42:46 -04:00
services:
- postgres
before_script:
- bundle install
2015-08-25 21:42:46 -04:00
- bundle exec rake db:create
variables:
DB_NAME: postgres
stages:
2015-08-25 21:42:46 -04:00
- test
- deploy
- notify
rspec:
script: "rake spec"
tags:
2015-08-25 21:42:46 -04:00
- ruby
- postgres
only:
- branches
spinach:
script: "rake spinach"
allow_failure: true
tags:
2015-08-25 21:42:46 -04:00
- ruby
- mysql
except:
- tags
staging:
variables:
KEY1: value1
KEY2: value2
2015-08-25 21:42:46 -04:00
script: "cap deploy stating"
stage: deploy
tags:
- ruby
- mysql
2015-08-25 21:42:46 -04:00
except:
- stable
production:
variables:
DB_NAME: mysql
stage: deploy
script:
2015-08-25 21:42:46 -04:00
- cap deploy production
- cap notify
tags:
- ruby
- mysql
2015-08-25 21:42:46 -04:00
only:
- master
- /^deploy-.*$/
dockerhub:
stage: notify
2015-08-25 21:42:46 -04:00
script: "curl http://dockerhub/URL"
tags:
- ruby
- postgres
only:
- branches