Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. services:
  2. - postgres:latest
  3.  
  4.  
  5. variables:
  6. POSTGRES_DB: vibly
  7. POSTGRES_USER: <%= ENV["DB_USER"] %>
  8. POSTGRES_PASSWORD: <%= ENV["DB_PASSWORD"] %>
  9.  
  10. rspec:
  11. stage: test
  12. image: g3dinua/node-ruby:2.3.3
  13. script:
  14. - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
  15. - apt-get update -y && apt-get install -y locales mysql-client
  16. - echo "en_US UTF-8" > /etc/locale.gen
  17. - locale-gen en_US.UTF-8
  18. - export LANG=en_US.UTF-8
  19. - export LANGUAGE=en_US:en
  20. - export LC_ALL=en_US.UTF-8
  21. - mkdir -p /cache/bin
  22. - ruby -v
  23. - gem install bundler
  24. - 'bundle_path=$(which bundle)'
  25. - bundle install --jobs $(nproc) --path=/cache/bundler
  26. - "RAILS_ENV=test bundle exec rake db:create --trace"
  27. - "RAILS_ENV=test bundle exec rake db:schema:load --trace"
  28. - "RAILS_ENV=test bundle exec rake db:test:prepare --trace"
  29. - "RAILS_ENV=test bundle exec rspec spec/"
  30. tags:
  31. - ruby
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement