-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vitalie
committed
May 26, 2023
1 parent
117915c
commit 0d6db42
Showing
1 changed file
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |