1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
before_script:
- bundle install
- bundle exec rake db:create
rspec 0 1:
stage: build
script: 'rake spec'
needs: []
tags:
- ruby
- postgres
only:
- branches
- master
rspec 0 2:
stage: build
allow_failure: true
script: 'rake spec'
when: on_failure
needs: []
spinach:
stage: build
script: 'rake spinach'
needs: []
except:
- tags
deploy_job:
stage: deploy
script:
- echo 'done'
environment:
name: production
docker:
stage: test
script: 'curl http://dockerhub/URL'
needs: [spinach, rspec 0 1]
when: manual
except:
- branches
after_script:
- echo 'run this after'
|