Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- - postgres:latest
- variables:
- POSTGRES_DB: vibly
- POSTGRES_USER: <%= ENV["DB_USER"] %>
- POSTGRES_PASSWORD: <%= ENV["DB_PASSWORD"] %>
- rspec:
- stage: test
- image: g3dinua/node-ruby:2.3.3
- script:
- - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- - apt-get update -y && apt-get install -y locales mysql-client
- - echo "en_US UTF-8" > /etc/locale.gen
- - locale-gen en_US.UTF-8
- - export LANG=en_US.UTF-8
- - export LANGUAGE=en_US:en
- - export LC_ALL=en_US.UTF-8
- - mkdir -p /cache/bin
- - ruby -v
- - gem install bundler
- - 'bundle_path=$(which bundle)'
- - bundle install --jobs $(nproc) --path=/cache/bundler
- - "RAILS_ENV=test bundle exec rake db:create --trace"
- - "RAILS_ENV=test bundle exec rake db:schema:load --trace"
- - "RAILS_ENV=test bundle exec rake db:test:prepare --trace"
- - "RAILS_ENV=test bundle exec rspec spec/"
- tags:
- - ruby
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement