-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
50 lines (43 loc) · 843 Bytes
/
.gitlab-ci.yml
File metadata and controls
50 lines (43 loc) · 843 Bytes
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
image: ruby:2.6.6
stages:
- lint
- test
- analysis
cache:
paths:
- vendor/ruby
.install_ruby_gems: &install_ruby_gems
- gem install bundler -v 2.1.4
- bundle install --path vendor
before_script:
- *install_ruby_gems
rubocop:
stage: lint
script:
- bundle exec rubocop --format progress --format json --out rubocop.json
artifacts:
paths:
- rubocop.json
except:
- schedules
bundler-audit:
stage: lint
before_script:
- *install_ruby_gems
- gem install bundler-audit
- bundle audit --update
script:
- bundle audit
allow_failure: true
rspec:
stage: test
script:
- bundle exec rspec --format progress --format RspecJunitFormatter --out rspec.xml
artifacts:
paths:
- rspec.xml
- coverage
reports:
junit: rspec.xml
except:
- schedules