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