|
|
# Redmine runs tests on own continuous integration server.
|
|
|
# http://www.redmine.org/projects/redmine/wiki/Continuous_integration
|
|
|
# You can also run tests on your environment.
|
|
|
language: ruby
|
|
|
rvm:
|
|
|
- 1.9.3
|
|
|
- 2.0
|
|
|
- 2.1
|
|
|
- 2.2
|
|
|
- jruby
|
|
|
env:
|
|
|
- "SUITE=units DB=postgresql"
|
|
|
- "SUITE=functionals DB=postgresql"
|
|
|
- "SUITE=integration DB=postgresql"
|
|
|
- "SUITE=ui DB=postgresql"
|
|
|
- "SUITE=units DB=mysql"
|
|
|
- "SUITE=functionals DB=mysql"
|
|
|
- "SUITE=integration DB=mysql"
|
|
|
- "SUITE=ui DB=mysql"
|
|
|
- "SUITE=units DB=sqlite3"
|
|
|
- "SUITE=functionals DB=sqlite3"
|
|
|
- "SUITE=integration DB=sqlite3"
|
|
|
- "SUITE=ui DB=sqlite3"
|
|
|
matrix:
|
|
|
allow_failures:
|
|
|
# SCM tests fail randomly due to IO.popen().
|
|
|
# http://www.redmine.org/issues/19091
|
|
|
# https://github.com/jruby/jruby/issues/779
|
|
|
- rvm: jruby
|
|
|
before_install:
|
|
|
- "sudo apt-get update -qq"
|
|
|
- "sudo apt-get --no-install-recommends install bzr cvs git mercurial subversion"
|
|
|
script:
|
|
|
- export DATABASE_ADAPTER=${DB}
|
|
|
- "SCMS=bazaar,cvs,subversion,git,mercurial,filesystem"
|
|
|
- "export SCMS"
|
|
|
- "git --version"
|
|
|
- "bundle install"
|
|
|
- "RUN_ON_NOT_OFFICIAL='' RUBY_VER=1.9 BRANCH=trunk bundle exec rake config/database.yml"
|
|
|
- "bundle install"
|
|
|
- "bundle exec rake ci:setup"
|
|
|
- phantomjs --webdriver 4444 &
|
|
|
- JRUBY_OPTS=-J-Xmx1024m bundle exec rake test:${SUITE}
|
|
|
notifications:
|
|
|
email: false
|
|
|
|