Last active
August 29, 2015 14:01
-
-
Save rlhh/99b0a37fd2bc168eab41 to your computer and use it in GitHub Desktop.
travis.yml
This file contains 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 | |
rvm: 2.0.0 | |
addons: | |
postgresql: "9.3" | |
cache: bundler | |
env: | |
- "NUM_GROUPS=2 GROUP=1" | |
- "NUM_GROUPS=2 GROUP=2" | |
before_script: | |
- psql -U postgres -c "create extension postgis" | |
- psql -d postgres -c "DROP DATABASE IF EXISTS myteksi_location_frontend_pr;" | |
- psql -d postgres -c "CREATE DATABASE myteksi_location_frontend_pr OWNER postgres;" | |
- cp config/application.sample.yml config/application.yml | |
- sed -i -e "s|enable_audit:\ true|enable_audit:\ false|" config/application.yml | |
- cp config/database.sample.yml config/database.yml | |
- bundle exec rake db:create | |
- bundle exec rake db:schema:load | |
- bundle exec sequel -m db/sequel postgres://postgres@localhost/myteksi_location_frontend_pr | |
script: | |
- bundle exec parallel_tests spec/ -n $NUM_GROUPS --only-group $GROUP --group-by filesize --type rspec | |
after_success: | |
- git tag v0.0.$TRAVIS_BUILD_NUMBER | |
- git push origin v0.0.$TRAVIS_BUILD_NUMBER | |
branches: | |
except: | |
- /^v/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment