@@ -1,114 +1,115 | |||||
1 | # Redmine runs tests on own continuous integration server. |
|
1 | # Redmine runs tests on own continuous integration server. | |
2 | # http://www.redmine.org/projects/redmine/wiki/Continuous_integration |
|
2 | # http://www.redmine.org/projects/redmine/wiki/Continuous_integration | |
3 | # You can also run tests on your environment. |
|
3 | # You can also run tests on your environment. | |
4 | language: ruby |
|
4 | language: ruby | |
5 | rvm: |
|
5 | rvm: | |
6 | - 1.9.3 |
|
6 | - 1.9.3 | |
7 | - 2.0 |
|
7 | - 2.0 | |
8 | - 2.1 |
|
8 | - 2.1 | |
9 | - 2.2 |
|
9 | - 2.2 | |
10 | - jruby-9.0.0.0 |
|
10 | - jruby-9.0.0.0 | |
11 | - jruby |
|
11 | - jruby | |
12 | env: |
|
12 | env: | |
13 | - "SUITE=units DB=postgresql" |
|
13 | - "SUITE=units DB=postgresql" | |
14 | - "SUITE=functionals DB=postgresql" |
|
14 | - "SUITE=functionals DB=postgresql" | |
15 | - "SUITE=integration DB=postgresql" |
|
15 | - "SUITE=integration DB=postgresql" | |
16 | - "SUITE=ui DB=postgresql" |
|
16 | - "SUITE=ui DB=postgresql" | |
17 | - "SUITE=units DB=mysql-5.5" |
|
17 | - "SUITE=units DB=mysql-5.5" | |
18 | - "SUITE=functionals DB=mysql-5.5" |
|
18 | - "SUITE=functionals DB=mysql-5.5" | |
19 | - "SUITE=integration DB=mysql-5.5" |
|
19 | - "SUITE=integration DB=mysql-5.5" | |
20 | - "SUITE=ui DB=mysql-5.5" |
|
20 | - "SUITE=ui DB=mysql-5.5" | |
21 | - "SUITE=units DB=mysql-5.6" |
|
21 | - "SUITE=units DB=mysql-5.6" | |
22 | - "SUITE=functionals DB=mysql-5.6" |
|
22 | - "SUITE=functionals DB=mysql-5.6" | |
23 | - "SUITE=integration DB=mysql-5.6" |
|
23 | - "SUITE=integration DB=mysql-5.6" | |
24 | - "SUITE=ui DB=mysql-5.6" |
|
24 | - "SUITE=ui DB=mysql-5.6" | |
25 | - "SUITE=units DB=mysql-5.7-dmr" |
|
25 | - "SUITE=units DB=mysql-5.7-dmr" | |
26 | - "SUITE=functionals DB=mysql-5.7-dmr" |
|
26 | - "SUITE=functionals DB=mysql-5.7-dmr" | |
27 | - "SUITE=integration DB=mysql-5.7-dmr" |
|
27 | - "SUITE=integration DB=mysql-5.7-dmr" | |
28 | - "SUITE=ui DB=mysql-5.7-dmr" |
|
28 | - "SUITE=ui DB=mysql-5.7-dmr" | |
29 | - "SUITE=units DB=mariadb-5.5" |
|
29 | - "SUITE=units DB=mariadb-5.5" | |
30 | - "SUITE=functionals DB=mariadb-5.5" |
|
30 | - "SUITE=functionals DB=mariadb-5.5" | |
31 | - "SUITE=integration DB=mariadb-5.5" |
|
31 | - "SUITE=integration DB=mariadb-5.5" | |
32 | - "SUITE=ui DB=mariadb-5.5" |
|
32 | - "SUITE=ui DB=mariadb-5.5" | |
33 | - "SUITE=units DB=mariadb-10.0" |
|
33 | - "SUITE=units DB=mariadb-10.0" | |
34 | - "SUITE=functionals DB=mariadb-10.0" |
|
34 | - "SUITE=functionals DB=mariadb-10.0" | |
35 | - "SUITE=integration DB=mariadb-10.0" |
|
35 | - "SUITE=integration DB=mariadb-10.0" | |
36 | - "SUITE=ui DB=mariadb-10.0" |
|
36 | - "SUITE=ui DB=mariadb-10.0" | |
37 | - "SUITE=units DB=sqlite3" |
|
37 | - "SUITE=units DB=sqlite3" | |
38 | - "SUITE=functionals DB=sqlite3" |
|
38 | - "SUITE=functionals DB=sqlite3" | |
39 | - "SUITE=integration DB=sqlite3" |
|
39 | - "SUITE=integration DB=sqlite3" | |
40 | - "SUITE=ui DB=sqlite3" |
|
40 | - "SUITE=ui DB=sqlite3" | |
41 | matrix: |
|
41 | matrix: | |
42 | allow_failures: |
|
42 | allow_failures: | |
43 | # http://www.redmine.org/issues/20251 |
|
43 | # http://www.redmine.org/issues/20251 | |
44 | - env: "SUITE=ui DB=postgresql" |
|
44 | - env: "SUITE=ui DB=postgresql" | |
45 | - env: "SUITE=ui DB=mysql-5.5" |
|
45 | - env: "SUITE=ui DB=mysql-5.5" | |
46 | - env: "SUITE=ui DB=mysql-5.6" |
|
46 | - env: "SUITE=ui DB=mysql-5.6" | |
47 | - env: "SUITE=ui DB=mysql-5.7-dmr" |
|
47 | - env: "SUITE=ui DB=mysql-5.7-dmr" | |
48 | - env: "SUITE=ui DB=mariadb-5.5" |
|
48 | - env: "SUITE=ui DB=mariadb-5.5" | |
49 | - env: "SUITE=ui DB=mariadb-10.0" |
|
49 | - env: "SUITE=ui DB=mariadb-10.0" | |
50 | - env: "SUITE=ui DB=sqlite3" |
|
50 | - env: "SUITE=ui DB=sqlite3" | |
51 | - env: "SUITE=units DB=mysql-5.7-dmr" |
|
51 | - env: "SUITE=units DB=mysql-5.7-dmr" | |
52 | - env: "SUITE=functionals DB=mysql-5.7-dmr" |
|
52 | - env: "SUITE=functionals DB=mysql-5.7-dmr" | |
53 | - env: "SUITE=integration DB=mysql-5.7-dmr" |
|
53 | - env: "SUITE=integration DB=mysql-5.7-dmr" | |
|
54 | - rvm: jruby-9.0.0.0 | |||
54 | # SCM tests fail randomly due to IO.popen(). |
|
55 | # SCM tests fail randomly due to IO.popen(). | |
55 | # http://www.redmine.org/issues/19091 |
|
56 | # http://www.redmine.org/issues/19091 | |
56 | # https://github.com/jruby/jruby/issues/779 |
|
57 | # https://github.com/jruby/jruby/issues/779 | |
57 | - rvm: jruby |
|
58 | - rvm: jruby | |
58 | # http://www.redmine.org/issues/17460 |
|
59 | # http://www.redmine.org/issues/17460 | |
59 | # http://www.redmine.org/issues/19344 |
|
60 | # http://www.redmine.org/issues/19344 | |
60 | - env: "SUITE=units DB=mysql-5.6" |
|
61 | - env: "SUITE=units DB=mysql-5.6" | |
61 | - env: "SUITE=units DB=mysql-5.7-dmr" |
|
62 | - env: "SUITE=units DB=mysql-5.7-dmr" | |
62 | - env: "SUITE=units DB=mariadb-5.5" |
|
63 | - env: "SUITE=units DB=mariadb-5.5" | |
63 | - env: "SUITE=units DB=mariadb-10.0" |
|
64 | - env: "SUITE=units DB=mariadb-10.0" | |
64 | before_install: |
|
65 | before_install: | |
65 | # https://github.com/travis-ci/travis-ci/issues/4720 |
|
66 | # https://github.com/travis-ci/travis-ci/issues/4720 | |
66 | - if [[ ${TRAVIS_RUBY_VERSION} =~ jruby-9\.0 ]] ; |
|
67 | - if [[ ${TRAVIS_RUBY_VERSION} =~ jruby-9\.0 ]] ; | |
67 | then |
|
68 | then | |
68 | rvm get master ; |
|
69 | rvm get master ; | |
69 | rvm use ${TRAVIS_RUBY_VERSION} --install ; |
|
70 | rvm use ${TRAVIS_RUBY_VERSION} --install ; | |
70 | ruby --version ; |
|
71 | ruby --version ; | |
71 | fi |
|
72 | fi | |
72 | - "sudo apt-get update -qq" |
|
73 | - "sudo apt-get update -qq" | |
73 | - "sudo apt-get --no-install-recommends install bzr cvs git mercurial subversion" |
|
74 | - "sudo apt-get --no-install-recommends install bzr cvs git mercurial subversion" | |
74 | - dpkg -l *mysql* |
|
75 | - dpkg -l *mysql* | |
75 | - if [[ $DB =~ (mariadb|mysql-5\.[67]) ]] ; |
|
76 | - if [[ $DB =~ (mariadb|mysql-5\.[67]) ]] ; | |
76 | then |
|
77 | then | |
77 | sudo service mysql stop ; |
|
78 | sudo service mysql stop ; | |
78 | sudo apt-get install python-software-properties ; |
|
79 | sudo apt-get install python-software-properties ; | |
79 | if [[ $DB =~ mariadb ]] ; |
|
80 | if [[ $DB =~ mariadb ]] ; | |
80 | then |
|
81 | then | |
81 | sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db ; |
|
82 | sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db ; | |
82 | MARIADB_VER=`echo $DB | sed -e 's/mariadb-//'` ; |
|
83 | MARIADB_VER=`echo $DB | sed -e 's/mariadb-//'` ; | |
83 | sudo add-apt-repository ''"deb http://ftp.osuosl.org/pub/mariadb/repo/${MARIADB_VER}/ubuntu precise main"'' ; |
|
84 | sudo add-apt-repository ''"deb http://ftp.osuosl.org/pub/mariadb/repo/${MARIADB_VER}/ubuntu precise main"'' ; | |
84 | sudo cp test/travis/mariadb.pref /etc/apt/preferences.d/mariadb.pref ; |
|
85 | sudo cp test/travis/mariadb.pref /etc/apt/preferences.d/mariadb.pref ; | |
85 | sudo apt-get update ; |
|
86 | sudo apt-get update ; | |
86 | sudo DEBIAN_FRONTEND=noninteractive apt-get -q --yes --force-yes -f --option DPkg::Options::=--force-confnew install mariadb-server ; |
|
87 | sudo DEBIAN_FRONTEND=noninteractive apt-get -q --yes --force-yes -f --option DPkg::Options::=--force-confnew install mariadb-server ; | |
87 | sudo apt-get install libmariadbd-dev ; |
|
88 | sudo apt-get install libmariadbd-dev ; | |
88 | else |
|
89 | else | |
89 | echo mysql-apt-config mysql-apt-config/enable-repo select $DB | sudo debconf-set-selections ; |
|
90 | echo mysql-apt-config mysql-apt-config/enable-repo select $DB | sudo debconf-set-selections ; | |
90 | wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all.deb ; |
|
91 | wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all.deb ; | |
91 | sudo dpkg --install mysql-apt-config_0.2.1-1ubuntu12.04_all.deb ; |
|
92 | sudo dpkg --install mysql-apt-config_0.2.1-1ubuntu12.04_all.deb ; | |
92 | sudo apt-get update -q ; |
|
93 | sudo apt-get update -q ; | |
93 | sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew mysql-server ; |
|
94 | sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew mysql-server ; | |
94 | fi |
|
95 | fi | |
95 | elif [[ $DB =~ postgresql ]] ; |
|
96 | elif [[ $DB =~ postgresql ]] ; | |
96 | then |
|
97 | then | |
97 | psql --version ; |
|
98 | psql --version ; | |
98 | psql -c "SHOW SERVER_VERSION" -U postgres ; |
|
99 | psql -c "SHOW SERVER_VERSION" -U postgres ; | |
99 | psql -c "SHOW SERVER_ENCODING" -U postgres ; |
|
100 | psql -c "SHOW SERVER_ENCODING" -U postgres ; | |
100 | psql -c "SHOW DateStyle" -U postgres ; |
|
101 | psql -c "SHOW DateStyle" -U postgres ; | |
101 | fi |
|
102 | fi | |
102 | script: |
|
103 | script: | |
103 | - export DATABASE_ADAPTER=${DB} |
|
104 | - export DATABASE_ADAPTER=${DB} | |
104 | - "SCMS=bazaar,cvs,subversion,git,mercurial,filesystem" |
|
105 | - "SCMS=bazaar,cvs,subversion,git,mercurial,filesystem" | |
105 | - "export SCMS" |
|
106 | - "export SCMS" | |
106 | - "git --version" |
|
107 | - "git --version" | |
107 | - "bundle install" |
|
108 | - "bundle install" | |
108 | - "RUN_ON_NOT_OFFICIAL='' RUBY_VER=1.9 BRANCH=trunk bundle exec rake config/database.yml" |
|
109 | - "RUN_ON_NOT_OFFICIAL='' RUBY_VER=1.9 BRANCH=trunk bundle exec rake config/database.yml" | |
109 | - "bundle install" |
|
110 | - "bundle install" | |
110 | - "bundle exec rake ci:setup" |
|
111 | - "bundle exec rake ci:setup" | |
111 | - phantomjs --webdriver 4444 & |
|
112 | - phantomjs --webdriver 4444 & | |
112 | - JRUBY_OPTS='-J-Xmx1024m -J-XX:MaxPermSize=1024m' bundle exec rake test:${SUITE} |
|
113 | - JRUBY_OPTS='-J-Xmx1024m -J-XX:MaxPermSize=1024m' bundle exec rake test:${SUITE} | |
113 | notifications: |
|
114 | notifications: | |
114 | email: false |
|
115 | email: false |
General Comments 0
You need to be logged in to leave comments.
Login now