debian-mirror-gitlab/spec/support/gitlab_stubs/gitlab_ci.yml

68 lines
838 B
YAML
Raw Normal View History

2019-02-13 22:33:31 +05:30
image: ruby:2.6
2015-09-25 12:07:36 +05:30
services:
- postgres
before_script:
2016-06-02 11:05:42 +05:30
- bundle install
2015-09-25 12:07:36 +05:30
- bundle exec rake db:create
variables:
DB_NAME: postgres
types:
- test
- deploy
- notify
rspec:
script: "rake spec"
2016-06-02 11:05:42 +05:30
tags:
2015-09-25 12:07:36 +05:30
- ruby
- postgres
only:
- branches
spinach:
script: "rake spinach"
allow_failure: true
2016-06-02 11:05:42 +05:30
tags:
2015-09-25 12:07:36 +05:30
- ruby
- mysql
except:
- tags
staging:
2016-06-02 11:05:42 +05:30
variables:
KEY1: value1
KEY2: value2
2015-09-25 12:07:36 +05:30
script: "cap deploy stating"
type: deploy
2016-06-02 11:05:42 +05:30
tags:
- ruby
- mysql
2015-09-25 12:07:36 +05:30
except:
- stable
production:
2016-06-02 11:05:42 +05:30
variables:
DB_NAME: mysql
2015-09-25 12:07:36 +05:30
type: deploy
2016-06-02 11:05:42 +05:30
script:
2015-09-25 12:07:36 +05:30
- cap deploy production
- cap notify
2016-06-02 11:05:42 +05:30
tags:
- ruby
- mysql
2015-09-25 12:07:36 +05:30
only:
- master
- /^deploy-.*$/
dockerhub:
type: notify
script: "curl http://dockerhub/URL"
tags:
- ruby
- postgres
only:
- branches