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

46 lines
649 B
YAML
Raw Normal View History

2021-03-08 18:12:59 +05:30
before_script:
- bundle install
- bundle exec rake db:create
2021-02-22 17:27:13 +05:30
rspec 0 1:
stage: build
script: 'rake spec'
needs: []
2021-03-08 18:12:59 +05:30
tags:
- ruby
- postgres
only:
- branches
- master
2021-02-22 17:27:13 +05:30
rspec 0 2:
stage: build
2021-03-08 18:12:59 +05:30
allow_failure: true
2021-02-22 17:27:13 +05:30
script: 'rake spec'
2021-03-08 18:12:59 +05:30
when: on_failure
2021-02-22 17:27:13 +05:30
needs: []
spinach:
stage: build
script: 'rake spinach'
needs: []
2021-03-08 18:12:59 +05:30
except:
- tags
2021-02-22 17:27:13 +05:30
2021-03-08 18:12:59 +05:30
deploy_job:
stage: deploy
script:
- echo 'done'
environment:
name: production
2021-02-22 17:27:13 +05:30
docker:
stage: test
script: 'curl http://dockerhub/URL'
needs: [spinach, rspec 0 1]
2021-03-08 18:12:59 +05:30
when: manual
except:
- branches
after_script:
- echo 'run this after'