-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
54 lines (45 loc) · 1.08 KB
/
.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
53
54
image: ruby:2.1
cache:
paths:
- vendor/ruby
.rails-42: &rails-42
before_script:
- ./scripts/prepare_build.sh
- ruby -v
- gem install bundler --no-ri --no-rdoc
- bundle install --gemfile=gemfiles/rails_42.gemfile -j $(nproc)
.rails-50: &rails-50
before_script:
- ./scripts/prepare_build.sh
- ruby -v
- gem install bundler --no-ri --no-rdoc
- bundle install --gemfile=gemfiles/rails_50.gemfile -j $(nproc)
rspec-ruby21-rails42:
<<: *rails-42
script:
- bundle exec rspec spec
rspec-ruby23-rails42:
image: ruby:2.3.1
<<: *rails-42
script:
- bundle exec rspec spec
rspec-ruby23-rails50:
image: ruby:2.3.1
<<: *rails-50
script:
- bundle exec rspec spec
.static-analysis: &static-analysis
image: ruby:2.3.1
before_script:
- ./scripts/prepare_build.sh
- ruby -v
- gem install bundler --no-ri --no-rdoc
- bundle install -j $(nproc)
rubocop:
<<: *static-analysis
script:
- bundle exec rubocop
bundler:audit:
<<: *static-analysis
script:
- "bundle exec bundle-audit check --update --ignore OSVDB-115941"