mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-29 10:37:13 +00:00
git-svn-id: http://svn.redmine.org/redmine/trunk@14077 e93f8b46-1217-0410-a6f0-8f06a7374b81
62 lines
2.5 KiB
YAML
62 lines
2.5 KiB
YAML
# 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:
|
|
- "TEST_SUITE=units DATABASE_ADAPTER=postgresql"
|
|
- "TEST_SUITE=functionals DATABASE_ADAPTER=postgresql"
|
|
- "TEST_SUITE=integration DATABASE_ADAPTER=postgresql"
|
|
- "TEST_SUITE=ui DATABASE_ADAPTER=postgresql"
|
|
- "TEST_SUITE=units DATABASE_ADAPTER=mysql"
|
|
- "TEST_SUITE=functionals DATABASE_ADAPTER=mysql"
|
|
- "TEST_SUITE=integration DATABASE_ADAPTER=mysql"
|
|
- "TEST_SUITE=ui DATABASE_ADAPTER=mysql"
|
|
- "TEST_SUITE=units DATABASE_ADAPTER=mariadb-10.0"
|
|
- "TEST_SUITE=functionals DATABASE_ADAPTER=mariadb-10.0"
|
|
- "TEST_SUITE=integration DATABASE_ADAPTER=mariadb-10.0"
|
|
- "TEST_SUITE=ui DATABASE_ADAPTER=mariadb-10.0"
|
|
- "TEST_SUITE=units DATABASE_ADAPTER=sqlite3"
|
|
- "TEST_SUITE=functionals DATABASE_ADAPTER=sqlite3"
|
|
- "TEST_SUITE=integration DATABASE_ADAPTER=sqlite3"
|
|
- "TEST_SUITE=ui DATABASE_ADAPTER=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
|
|
# http://www.redmine.org/issues/17460
|
|
# http://www.redmine.org/issues/19344
|
|
- env: "TEST_SUITE=units DATABASE_ADAPTER=mariadb-10.0"
|
|
before_install:
|
|
- "sudo apt-get update -qq"
|
|
- "sudo apt-get --no-install-recommends install bzr cvs git mercurial subversion"
|
|
- if [[ $DATABASE_ADAPTER =~ mariadb ]] ;
|
|
then
|
|
sudo service mysql stop ;
|
|
sudo apt-get install python-software-properties ;
|
|
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db ;
|
|
sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu precise main' ;
|
|
sudo apt-get update ;
|
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -q --yes --force-yes -f --option DPkg::Options::=--force-confnew install mariadb-server ;
|
|
sudo apt-get install libmariadbd-dev ;
|
|
fi
|
|
script:
|
|
- "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:${TEST_SUITE}
|
|
notifications:
|
|
email: false
|