Commit 98de2129 authored by James Lopez's avatar James Lopez

added build for both ruby 2.1 and 2.2

parent 3d2df984
image: "ruby:2.2"
before_script: before_script:
- export PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin - export PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
- apt-get update - apt-get update
...@@ -6,7 +8,26 @@ before_script: ...@@ -6,7 +8,26 @@ before_script:
- cp config.yml.example config.yml - cp config.yml.example config.yml
- bundle install - bundle install
#ruby 2.2
rspec:
script:
- bundle exec rspec spec
tags:
- ruby
except:
- tags
rubocop:
script:
- bundle exec rubocop
tags:
- ruby
except:
- tags
#ruby 2.1
rspec: rspec:
image: ruby:2.1
script: script:
- bundle exec rspec spec - bundle exec rspec spec
tags: tags:
...@@ -15,6 +36,7 @@ rspec: ...@@ -15,6 +36,7 @@ rspec:
- tags - tags
rubocop: rubocop:
image: ruby:2.1
script: script:
- bundle exec rubocop - bundle exec rubocop
tags: tags:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment