Commit de97eca9 authored by Milan's avatar Milan

Update .gitlab-ci.yml

parent d99b22e7
Pipeline #263 failed with stage
in 19 seconds
rvm:
- 2.2
- 2.3
env:
- DB=postgresql BUILD_TYPE=cucumber
- DB=mysql BUILD_TYPE=cucumber
- DB=postgresql BUILD_TYPE=other
- DB=mysql BUILD_TYPE=other
sudo: false
cache:
bundler: true
directories:
- app/assets/images
branches:
only:
- 'master'
- 'stable'
- 'develop'
before_install:
- gem install bundler
- mkdir travis-phantomjs
- wget http://cifiles.diasporafoundation.org/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
bundler_args: "--deployment --without development production --with mysql postgresql --jobs 3 --retry 3"
script: "./script/ci/build-gitlab.sh"
image: "ruby:2.2"
before_script:
- export PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
- gem install --bindir /usr/local/bin bundler
- cp config/diaspora.yml.example config/diaspora.yml
- 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.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
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