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 5c8cbbd
Showing 1 changed file with 33 additions and 31 deletions.
64 changes: 33 additions & 31 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,67 @@
language: ruby
dist: bionic
rvm: 2.5.9

services:
- redis
language: ruby
rvm: 2.5.9

cache:
bundler: true

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

services:
- redis

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 5c8cbbd

Please sign in to comment.