Commit ab30e9b0 authored by Milan's avatar Milan

Update .gitlab-ci.yml

parent 0ba66496
Pipeline #270 failed
image: "ruby:2.2"
image: "ruby:2.3"
before_script:
- cp config/diaspora.yml.example config/diaspora.yml
- RAILS_ENV=production bin/bundle install --without test development --with mysql --deployment
#ruby 2.2
rspec:
script:
- bundle exec rspec spec
tags:
- ruby
except:
- tags
rubocop:
script:
- bundle exec rubocop
tags:
- ruby
except:
- tags
#ruby 2.3
rspec:ruby2.3:
image: ruby:2.3
script:
- bundle exec rspec spec
tags:
- ruby
except:
- tags
rubocop:ruby2.3:
image: ruby:2.3
script:
- bundle exec rubocop
tags:
- ruby
except:
- tags
- export DB=postgresql
- export BUILD_TYPE=cucumber
- rvm use 2.2 --install --binary --fuzzy
- export BUNDLE_GEMFILE=$PWD/Gemfile
- gem install bundler
- bin/bundle install --deployment --without development production --with mysql postgresql --jobs 3 --retry 3
- cp config/database.yml.example config/database.yml
- sed -i 's/*common/*mysql/' config/database.yml
- ~/.rvm/rubies/ruby-2.2.4/bin/ruby -S bundle exec cucumber --profile default
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