forked from travis-ci/travis-yml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (47 loc) · 1.28 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
dist: focal
language: ruby
rvm: 2.6.10
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
- name: ":ship: it to quay.io"
if: commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true
before_install:
- 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: prepare cache
script: true
- stage: test
name: rspec
script:
- bundle exec rspec
- stage: test
name: integration_configs
script:
- 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"
dist: jammy
language: minimal
cache:
bundler: false
before_install: skip
install: skip
script: make ship