Last active
August 29, 2015 13:57
-
-
Save simonmorley/9415878 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: ruby | |
cache: | |
bundler: true | |
apt: true | |
rvm: | |
- 2.0.0 | |
env: | |
# - TESTFOLDER=spec/models | |
# - TESTFOLDER=spec/controllers | |
# - TESTFOLDER=spec/routing | |
# - TESTFOLDER=spec/helpers | |
bundler_args: --without development --path=~/.bundle | |
before_script: | |
- mv config/database.yml.example config/database.yml | |
- mysql -e 'create database myapp_test;' | |
- mysql -e 'create database test_cache;' | |
- "mysql -u travis myapp_test < db/structure.sql" | |
- "mysql -u travis test_cache < db/radacct.sql" | |
- "mysql -u travis test_cache < db/radpostauth.sql" | |
- "mysql -u travis test_cache < db/radcheck.sql" | |
script: | |
- bundle exec rake db:seed RAILS_ENV=test | |
- bundle exec rspec spec/models | |
- bundle exec rspec spec/controllers | |
- bundle exec rspec spec/routing | |
- bundle exec rspec spec/lib | |
- bundle exec rspec spec/concerns | |
- bundle exec rspec spec/workers | |
- bundle exec rspec spec/helpers | |
services: | |
- elasticsearch | |
- redis-server | |
- rabbitmq | |
before_install: | |
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" | |
- sudo apt-get update -qq | |
- sudo apt-get install -qq wbritish | |
- sudo apt-get install openvpn | |
- sudo rm -rf /etc/openvpn* | |
- sudo git clone https://github.com/PolkaSpots/openvpn.git /etc/openvpn | |
- sudo chown -R travis:travis /etc/openvpn | |
- sudo mv /etc/localtime /etc/localtime.default | |
- sudo cp /usr/share/zoneinfo/Europe/London /etc/localtime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment