.travis.yml revision 01f405bcc03a86ec2bd365bbdea3f6551a4ace80
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainenlanguage: ruby
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen
2201e2cc1b3f744dac61c2bf8095bcb6b5719540Timo Sirainenrvm:
2201e2cc1b3f744dac61c2bf8095bcb6b5719540Timo Sirainen - 2.1
2201e2cc1b3f744dac61c2bf8095bcb6b5719540Timo Sirainen
2201e2cc1b3f744dac61c2bf8095bcb6b5719540Timo Sirainenbranches:
fcca16701767c6b92227a9ee125de69d257882f6Timo Sirainen except:
fcca16701767c6b92227a9ee125de69d257882f6Timo Sirainen - ontohub.org
fcca16701767c6b92227a9ee125de69d257882f6Timo Sirainen - staging.ontohub.org
2201e2cc1b3f744dac61c2bf8095bcb6b5719540Timo Sirainen - develop.ontohub.org
4d33a3133e8484ebd00f677f457cda82f1365b84Timo Sirainen
4d33a3133e8484ebd00f677f457cda82f1365b84Timo Sirainenservices:
4d33a3133e8484ebd00f677f457cda82f1365b84Timo Sirainen - redis-server
4d33a3133e8484ebd00f677f457cda82f1365b84Timo Sirainen - elasticsearch
4d33a3133e8484ebd00f677f457cda82f1365b84Timo Sirainen
4d33a3133e8484ebd00f677f457cda82f1365b84Timo Sirainennotifications:
4d33a3133e8484ebd00f677f457cda82f1365b84Timo Sirainen email: false
fe363b433b8038a69b55169da9dca27892ad7d18Timo Sirainen
fcca16701767c6b92227a9ee125de69d257882f6Timo Sirainenbefore_install:
fcca16701767c6b92227a9ee125de69d257882f6Timo Sirainen - 'export DISPLAY=:99.0'
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4Timo Sirainen - 'sh -e /etc/init.d/xvfb start'
2201e2cc1b3f744dac61c2bf8095bcb6b5719540Timo Sirainen - 'gem install bundler'
6967fa47dde9f2726bd86019a50627dacf2d7509Timo Sirainen
6967fa47dde9f2726bd86019a50627dacf2d7509Timo Sirainenscript:
6967fa47dde9f2726bd86019a50627dacf2d7509Timo Sirainen - bundle exec rake
6967fa47dde9f2726bd86019a50627dacf2d7509Timo Sirainen - TEST_CLUSTER_COMMAND=/usr/share/elasticsearch/bin/elasticsearch TEST_CLUSTER_PARAMS='-Des.default.path.conf=/etc/elasticsearch/ -Des.default.path.logs==/var/log/elasticsearch/' bundle exec rake
6967fa47dde9f2726bd86019a50627dacf2d7509Timo Sirainen - bundle exec rake test_full
2201e2cc1b3f744dac61c2bf8095bcb6b5719540Timo Sirainen
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
- RAILS_ENV=test bundle exec rake db:migrate || true