diff options
author | James Lopez <james@jameslopez.es> | 2016-02-10 10:29:11 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-02-10 10:29:11 +0100 |
commit | 98de2129d64247ce15a67d31b870e0248d708c36 (patch) | |
tree | dafad66d1617f359883ed2737ae58dfaa49f0abe /.gitlab-ci.yml | |
parent | 3d2df984661269c1335752af8232e8b2248ce4d1 (diff) | |
download | gitlab-shell-98de2129d64247ce15a67d31b870e0248d708c36.tar.gz |
added build for both ruby 2.1 and 2.2
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 784e8d5..7b4410f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,5 @@ +image: "ruby:2.2" + before_script: - export PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin - apt-get update @@ -6,6 +8,7 @@ before_script: - cp config.yml.example config.yml - bundle install +#ruby 2.2 rspec: script: - bundle exec rspec spec @@ -21,3 +24,22 @@ rubocop: - ruby except: - tags + +#ruby 2.1 +rspec: + image: ruby:2.1 + script: + - bundle exec rspec spec + tags: + - ruby + except: + - tags + +rubocop: + image: ruby:2.1 + script: + - bundle exec rubocop + tags: + - ruby + except: + - tags |