lawrencechanyewlong/wherewolfpro

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: ruby
cache: bundler
rvm:
- ruby-2.3.0
services:
- postgresql 
before_script:
# The next two lines are needed if you are using selenium at all. Travis has not window,
# so we need to "trick it" into thinking it has one...more or less.
- export DISPLAY=:99.0 # Declaring which display we will use.
- sh -e /etc/init.d/xvfb start # Turning on the fake display
# - psql -c 'create database [DATABASE_NAME];' -U postgres
script:
- bundle install --without production
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rake db:test:prepare db:seed
- bundle exec rake cucumber
- bundle exec rake spec
# addons:
#   code_climate: # Pulls Code Coverage metrics from Code Climate
#     repo_token: [REDACTED]
# notifications:
#   slack: # Notifies Slack when someone pushes to master...Something that should rarely happen.
#     secure: [REDACTED]
# deploy: # If and ONLY if Travis build succeeds, it automatically is deployed to heroku.
#   provider: heroku
#   api_key:
#     secure: [REDACTED]
#   app:
#     staging: [STAGING APP ON HEROKU]
#     master: [MASTER APP ON HEROKU]