.travis.yml revision 202b23de2e4dc497fadc4c7003d06550f271e55e
language: ruby
rvm:
- 2.1
cache:
bundler: true
addons:
postgresql: '9.3'
branches:
except:
services:
- redis-server
- elasticsearch
notifications:
email: false
webhooks:
urls:
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: true # default: false
before_install:
- 'export DISPLAY=:99.0'
- 'sh -e /etc/init.d/xvfb start'
- 'gem install bundler'
script:
- SPEC_OPTS='--format documentation' CUCUMBER_OPTS='--format pretty' ELASTIC_TEST_PORT=9200 bundle exec rake
before_script:
- psql -c 'create database ontohub_test;' -U postgres
- sudo apt-add-repository -y ppa:hets/hets
- sudo apt-add-repository -y 'deb http://archive.canonical.com/ubuntu precise partner'
- sudo apt-add-repository -y 'deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse'
- sudo apt-get update
- sudo apt-get install libsane libgphoto2-2 hets-core subversion udrawgraph git-svn
- sudo hets -update
- mkdir -p tmp/{git,data/{git,git_daemon,commits}}
- RAILS_ENV=test bundle exec rake db:migrate || true