debian-mirror-gitlab/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

2022-06-21 17:19:12 +05:30
image: image:1.0
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
2022-03-02 08:16:31 +05:30
stages:
2015-09-25 12:07:36 +05:30
- 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"
2022-03-02 08:16:31 +05:30
stage: 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
2022-03-02 08:16:31 +05:30
stage: 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:
2022-03-02 08:16:31 +05:30
stage: notify
2015-09-25 12:07:36 +05:30
script: "curl http://dockerhub/URL"
tags:
- ruby
- postgres
only:
- branches