2014-01-19 03:59:32 +04:00
|
|
|
# Redmine runs tests on own continuous integration server.
|
|
|
|
# http://www.redmine.org/projects/redmine/wiki/Continuous_integration
|
2014-01-19 04:07:13 +04:00
|
|
|
# You can also run tests on your environment.
|
2014-01-19 03:59:32 +04:00
|
|
|
language: ruby
|
|
|
|
rvm:
|
|
|
|
- 1.8.7
|
|
|
|
- 1.9.3
|
|
|
|
- 2.0.0
|
|
|
|
- 2.1.0
|
2014-02-12 03:54:36 +04:00
|
|
|
- jruby
|
2014-02-12 03:54:51 +04:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
# SCM tests fail randomly due to IO.popen().
|
|
|
|
# https://github.com/jruby/jruby/issues/779
|
|
|
|
- rvm: jruby
|
2014-01-19 03:59:32 +04:00
|
|
|
env:
|
|
|
|
- "TEST_SUITE=units DATABASE_ADAPTER=postgresql"
|
|
|
|
- "TEST_SUITE=functionals DATABASE_ADAPTER=postgresql"
|
|
|
|
- "TEST_SUITE=integration DATABASE_ADAPTER=postgresql"
|
|
|
|
- "TEST_SUITE=units DATABASE_ADAPTER=mysql"
|
|
|
|
- "TEST_SUITE=functionals DATABASE_ADAPTER=mysql"
|
|
|
|
- "TEST_SUITE=integration DATABASE_ADAPTER=mysql"
|
|
|
|
- "TEST_SUITE=units DATABASE_ADAPTER=sqlite3"
|
|
|
|
- "TEST_SUITE=functionals DATABASE_ADAPTER=sqlite3"
|
|
|
|
- "TEST_SUITE=integration DATABASE_ADAPTER=sqlite3"
|
|
|
|
before_install:
|
|
|
|
- "sudo apt-get update -qq"
|
|
|
|
- "sudo apt-get --no-install-recommends install bzr cvs git mercurial subversion"
|
|
|
|
script:
|
|
|
|
- "SCMS=bazaar,cvs,subversion,git,mercurial,filesystem"
|
|
|
|
- "export SCMS"
|
2014-02-08 03:11:53 +04:00
|
|
|
- "git --version"
|
2014-01-19 03:59:32 +04:00
|
|
|
- "bundle install"
|
|
|
|
- "RUN_ON_NOT_OFFICIAL='' RUBY_VER=1.9 BRANCH=trunk bundle exec rake config/database.yml"
|
|
|
|
- "bundle install"
|
|
|
|
- "JRUBY_OPTS=-J-Xmx1024m bundle exec rake ci"
|
|
|
|
notifications:
|
|
|
|
email: false
|