|
1 | | -language: ruby |
2 | 1 | dist: bionic |
3 | | -rvm: 2.5.9 |
4 | 2 |
|
5 | | -services: |
6 | | - - redis |
| 3 | +language: ruby |
| 4 | +rvm: 2.5.9 |
7 | 5 |
|
8 | 6 | cache: |
9 | 7 | bundler: true |
10 | 8 |
|
11 | 9 | env: |
12 | 10 | global: |
13 | | - - COVERAGE=1 |
14 | | - - PATH=/snap/bin:$PATH |
| 11 | + - COVERAGE=1 |
| 12 | + - PATH=/snap/bin:$PATH |
15 | 13 | matrix: |
16 | | - - INTEGRATION_SPECS=0 |
17 | | - - INTEGRATION_SPECS=1 |
| 14 | + - INTEGRATION_SPECS=0 |
| 15 | + - INTEGRATION_SPECS=1 |
18 | 16 |
|
19 | 17 | addons: |
20 | 18 | snaps: |
21 | | - - name: docker |
22 | | - channel: latest/beta |
| 19 | + - name: docker |
| 20 | + channel: latest/beta |
| 21 | + |
| 22 | +services: |
| 23 | + - redis |
23 | 24 |
|
24 | 25 | stages: |
25 | | -- test |
26 | | -- ':ship: it to quay.io' |
| 26 | + - test |
| 27 | + |
| 28 | + - ':ship: it to quay.io' |
27 | 29 |
|
28 | 30 | jobs: |
29 | 31 | allow_failures: |
30 | | - - script: ./script/docker-build-and-push |
| 32 | + - script: ./script/docker-build-and-push |
31 | 33 | include: |
32 | | - - stage: test |
33 | | - env: |
34 | | - script: ./script/validate-example-payloads-with-docker |
| 34 | + - stage: test |
| 35 | + env: |
| 36 | + script: ./script/validate-example-payloads-with-docker |
35 | 37 |
|
36 | | - - stage: ':ship: it to quay.io' |
37 | | - env: |
38 | | - script: ./script/docker-build-and-push |
39 | | - if: (branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true |
| 38 | + - stage: ':ship: it to quay.io' |
| 39 | + env: |
| 40 | + script: ./script/docker-build-and-push |
| 41 | + if: (branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true |
40 | 42 |
|
41 | 43 | before_install: |
42 | | -- gem update --silent --system 3.3.26 |
| 44 | + - gem update --silent --system 3.3.26 |
43 | 45 |
|
44 | 46 | before_script: |
45 | | -- eval "$(script/handle-docker-config)" |
46 | | -- bundle install |
47 | | -- bundle exec rake clean assets:precompile |
| 47 | + - eval "$(script/handle-docker-config)" |
| 48 | + - bundle install |
| 49 | + - bundle exec rake clean assets:precompile |
48 | 50 |
|
49 | 51 | script: |
50 | | -- bundle exec rspec spec |
51 | | -- bundle exec rake shfmt |
52 | | -- bundle exec rake assert_clean |
53 | | -- bundle exec rake shellcheck |
54 | | -- bundle exec rake assert_examples |
| 52 | + - bundle exec rspec spec |
| 53 | + - bundle exec rake shfmt |
| 54 | + - bundle exec rake assert_clean |
| 55 | + - bundle exec rake shellcheck |
| 56 | + - bundle exec rake assert_examples |
55 | 57 |
|
56 | 58 | after_success: bundle exec codeclimate-test-reporter |
57 | 59 |
|
58 | 60 | after_failure: bundle exec rake dump_examples_logs |
59 | 61 |
|
60 | 62 | before_deploy: |
61 | | -- sudo pip install -U -I Pygments |
62 | | -- ./script/build-s3-index-html |
| 63 | + - sudo pip install -U -I Pygments |
| 64 | + - ./script/build-s3-index-html |
63 | 65 |
|
64 | 66 | deploy: |
65 | 67 | provider: s3 |
|
0 commit comments