Skip to content

Commit 98de212

Browse files
committed
added build for both ruby 2.1 and 2.2
1 parent 3d2df98 commit 98de212

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.gitlab-ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
image: "ruby:2.2"
2+
13
before_script:
24
- export PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
35
- apt-get update
@@ -6,6 +8,7 @@ before_script:
68
- cp config.yml.example config.yml
79
- bundle install
810

11+
#ruby 2.2
912
rspec:
1013
script:
1114
- bundle exec rspec spec
@@ -21,3 +24,22 @@ rubocop:
2124
- ruby
2225
except:
2326
- tags
27+
28+
#ruby 2.1
29+
rspec:
30+
image: ruby:2.1
31+
script:
32+
- bundle exec rspec spec
33+
tags:
34+
- ruby
35+
except:
36+
- tags
37+
38+
rubocop:
39+
image: ruby:2.1
40+
script:
41+
- bundle exec rubocop
42+
tags:
43+
- ruby
44+
except:
45+
- tags

0 commit comments

Comments
 (0)