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

68 lines
838 B
YAML
Raw Normal View History

image: ruby:2.6
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
types:
- 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"
type: deploy
tags:
- ruby
- mysql
2015-08-25 21:42:46 -04:00
except:
- stable
production:
variables:
DB_NAME: mysql
2015-08-25 21:42:46 -04:00
type: 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:
type: notify
script: "curl http://dockerhub/URL"
tags:
- ruby
- postgres
only:
- branches