-
Notifications
You must be signed in to change notification settings - Fork 10
/
.gitlab-ci.yml
52 lines (46 loc) · 876 Bytes
/
.gitlab-ci.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
---
# Cache gems in between builds
cache:
paths:
- vendor/ruby
lint:rubocop:
image: ruby
script:
- gem install rubocop -N
- rubocop lib
.test:
before_script:
- sed -e 's/# gem /gem /' -i Gemfile
- gem install bundler -N
- bundle install -j $(nproc) --path vendor
coverage: '/\((\d+(?:.\d+)?)\%\) covered/'
script:
- GENERATE_REPORTS=true CI_REPORTS=reports bundle exec rake test
artifacts:
expire_in: 1 week
paths:
- coverage/
reports:
junit: "reports/TEST-*.xml"
test:ruby2.7:
extends: .test
image: "ruby:2.7"
test:ruby3.0:
extends: .test
image: "ruby:3.0"
test:ruby3.1:
extends: .test
image: "ruby:3.1"
pages:
image: ruby
stage: deploy
needs: []
script:
- gem install yard -N
- yard doc -o public/
artifacts:
paths:
- public/
only:
- master
when: always