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 117915c commit 0d6db42
Showing 1 changed file with 41 additions and 13 deletions.
54 changes: 41 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,60 @@
dist: focal

language: ruby
rvm: 2.6.10

cache: bundler
env:
global:
- PATH=/snap/bin:$PATH
git:
depth: 10

# Build master, enterprise-3.0 and PRs which merge into those branches
# We don't automatically build other branches when they're pushed; create a PR to cause the CI to run.
branches:
only:
- master
- enterprise-3.0

cache:
bundler: true
timeout: 600

stages:
- name: prepare cache

- name: test

addons:
snaps:
- name: docker
channel: latest/beta
- name: ":ship: it to quay.io"
if: commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true

before_install:
- gem install bundler -v '2.0.1'
- gem update --silent --system 3.4.13
- 'echo "gem: --no-document" >> ~/.gemrc' # Skip installing documentation
# - gem install bundler -v $(awk '/BUNDLED WITH/{getline; print}' Gemfile.lock)

jobs:
include:
- stage: "testing time"
- stage: prepare cache
script: true

- stage: test
name: rspec
script:
- bundle exec rspec

- stage: test
name: integration_configs
script:
- bundle exec rspec spec
- bundle exec rspec spec/integrate/configs_spec.rb --tag integration_configs

- stage: test
name: integration_matrix
script:
- bundle exec rspec spec/integrate/matrix_spec.rb --tag integration_matrix

- stage: ":ship: it to quay.io"
language: ruby
dist: jammy
language: minimal
cache:
bundler: false
before_install: skip
install: skip
script: make ship
if: (branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true

0 comments on commit 0d6db42

Please sign in to comment.