controlshift/prague-server

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: ruby
cache: bundler
sudo: false
rvm:
  - "2.4.3"
before_install:
  - "echo 'gem: --no-document' > ~/.gemrc"
  - "echo '--colour' > ~/.rspec"
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - ./bin/load_geoip.sh # install geoip library
services:
  - redis-server
env:
  - DB=postgresql PUSER_APP_ID=1234 PUSHER_KEY=123 PUSHER_SECRET=123 STRIPE_SECRET=bar STRIPE_PUBLIC=foo STRIPE_CONNECT_CLIENT_ID=1234 GEOCOUNTRY_LITE_PATH=tmp/GeoIP.dat
before_script:
  - cp config/database.travis.yml config/database.yml
  - psql -c 'create database prague_test' -U postgres
script:
  - RAILS_ENV=test bundle exec rake db:migrate --trace
  - bundle exec rake db:test:prepare
  - bundle exec rspec spec
  - bundle exec rspec scenarios