Merge branch 'master' of salsa.debian.org:debian/debshots
This commit is contained in:
commit
a8ad2b9334
1 changed files with 9 additions and 8 deletions
|
|
@ -1,11 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
||||||
tags:
|
|
||||||
- ruby
|
|
||||||
- stretch
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
POSTGRES_DB: debshots_test
|
POSTGRES_DB: debshots_test
|
||||||
POSTGRES_USER: debshots
|
POSTGRES_USER: debshots
|
||||||
|
|
@ -19,13 +14,19 @@ build:
|
||||||
paths:
|
paths:
|
||||||
- vendor/
|
- vendor/
|
||||||
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- apt-get update -qy
|
- apt-get update -qy
|
||||||
- apt-get -o dir::cache::archives="vendor/apt" install -yqq imagemagick git build-essential zlib1g-dev libbz2-dev libpq-dev
|
- apt-get -o dir::cache::archives="vendor/apt" install -yqq imagemagick git build-essential zlib1g-dev libbz2-dev libpq-dev ruby-dev curl
|
||||||
#- gem install bundler --no-ri --no-rdoc
|
- curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash
|
||||||
|
- export PATH="$HOME/.rbenv/bin:$PATH"
|
||||||
|
- eval "$(rbenv init -)"
|
||||||
|
- rbenv install --skip-existing `cat .ruby-version`
|
||||||
|
- bundle install
|
||||||
|
- bundle exec rake db:migrate RAILS_ENV=test
|
||||||
|
- gem install bundler
|
||||||
- RAILS_ENV=test bundle install --path vendor
|
- RAILS_ENV=test bundle install --path vendor
|
||||||
- cp config/database.yml.gitlab config/database.yml
|
- cp config/database.yml.gitlab config/database.yml
|
||||||
- RAILS_ENV=test bundle exec rake db:create db:schema:load
|
- RAILS_ENV=test bundle exec rake db:create db:schema:load
|
||||||
#- RAILS_ENV=test bundle exec rake db:schema:load
|
#- RAILS_ENV=test bundle exec rake db:schema:load
|
||||||
- bundle exec rake test
|
- bundle exec rake test
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue