File: gitlab_ci_includes.yml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (45 lines) | stat: -rw-r--r-- 649 bytes parent folder | download
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'