Skip to content

Commit

Permalink
.travis.yml updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalie committed May 26, 2023
1 parent e437a86 commit da85df2
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,56 +10,56 @@ cache:

env:
global:
- COVERAGE=1
- PATH=/snap/bin:$PATH
- COVERAGE=1
- PATH=/snap/bin:$PATH
matrix:
- INTEGRATION_SPECS=0
- INTEGRATION_SPECS=1
- INTEGRATION_SPECS=0
- INTEGRATION_SPECS=1

addons:
snaps:
- name: docker
channel: latest/beta
- name: docker
channel: latest/beta

stages:
- test
- ':ship: it to quay.io'
- test
- ':ship: it to quay.io'

jobs:
allow_failures:
- script: ./script/docker-build-and-push
- script: ./script/docker-build-and-push
include:
- stage: test
env:
script: ./script/validate-example-payloads-with-docker
- stage: test
env:
script: ./script/validate-example-payloads-with-docker

- stage: ':ship: it to quay.io'
env:
script: ./script/docker-build-and-push
if: (branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true
- stage: ':ship: it to quay.io'
env:
script: ./script/docker-build-and-push
if: (branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true

before_install:
- gem update --silent --system 3.3.26
- gem update --silent --system 3.3.26

before_script:
- eval "$(script/handle-docker-config)"
- bundle install
- bundle exec rake clean assets:precompile
- eval "$(script/handle-docker-config)"
- bundle install
- bundle exec rake clean assets:precompile

script:
- bundle exec rspec spec
- bundle exec rake shfmt
- bundle exec rake assert_clean
- bundle exec rake shellcheck
- bundle exec rake assert_examples
- bundle exec rspec spec
- bundle exec rake shfmt
- bundle exec rake assert_clean
- bundle exec rake shellcheck
- bundle exec rake assert_examples

after_success: bundle exec codeclimate-test-reporter

after_failure: bundle exec rake dump_examples_logs

before_deploy:
- sudo pip install -U -I Pygments
- ./script/build-s3-index-html
- sudo pip install -U -I Pygments
- ./script/build-s3-index-html

deploy:
provider: s3
Expand Down

0 comments on commit da85df2

Please sign in to comment.