@@ -0,0 +1,6 | |||||
|
1 | # https://mariadb.com/kb/en/mariadb/installing-mariadb-deb-files/ | |||
|
2 | # /etc/apt/preferences.d/ | |||
|
3 | ||||
|
4 | Package: * | |||
|
5 | Pin: origin ftp.osuosl.org | |||
|
6 | Pin-Priority: 1000 |
@@ -1,87 +1,88 | |||||
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 | # SCM tests fail randomly due to IO.popen(). |
|
42 | # SCM tests fail randomly due to IO.popen(). | |
43 | # http://www.redmine.org/issues/19091 |
|
43 | # http://www.redmine.org/issues/19091 | |
44 | # https://github.com/jruby/jruby/issues/779 |
|
44 | # https://github.com/jruby/jruby/issues/779 | |
45 | - rvm: jruby |
|
45 | - rvm: jruby | |
46 | # http://www.redmine.org/issues/17460 |
|
46 | # http://www.redmine.org/issues/17460 | |
47 | # http://www.redmine.org/issues/19344 |
|
47 | # http://www.redmine.org/issues/19344 | |
48 | - env: "SUITE=units DB=mysql-5.6" |
|
48 | - env: "SUITE=units DB=mysql-5.6" | |
49 | - env: "SUITE=units DB=mysql-5.7-dmr" |
|
49 | - env: "SUITE=units DB=mysql-5.7-dmr" | |
50 | - env: "SUITE=units DB=mariadb-5.5" |
|
50 | - env: "SUITE=units DB=mariadb-5.5" | |
51 | - env: "SUITE=units DB=mariadb-10.0" |
|
51 | - env: "SUITE=units DB=mariadb-10.0" | |
52 | before_install: |
|
52 | before_install: | |
53 | - "sudo apt-get update -qq" |
|
53 | - "sudo apt-get update -qq" | |
54 | - "sudo apt-get --no-install-recommends install bzr cvs git mercurial subversion" |
|
54 | - "sudo apt-get --no-install-recommends install bzr cvs git mercurial subversion" | |
55 | - if [[ $DB =~ (mariadb|mysql-5\.[67]) ]] ; |
|
55 | - if [[ $DB =~ (mariadb|mysql-5\.[67]) ]] ; | |
56 | then |
|
56 | then | |
57 | sudo service mysql stop ; |
|
57 | sudo service mysql stop ; | |
58 | sudo apt-get install python-software-properties ; |
|
58 | sudo apt-get install python-software-properties ; | |
59 | if [[ $DB =~ mariadb ]] ; |
|
59 | if [[ $DB =~ mariadb ]] ; | |
60 | then |
|
60 | then | |
61 | sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db ; |
|
61 | sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db ; | |
62 | MARIADB_VER=`echo $DB | sed -e 's/mariadb-//'` ; |
|
62 | MARIADB_VER=`echo $DB | sed -e 's/mariadb-//'` ; | |
63 | sudo add-apt-repository ''"deb http://ftp.osuosl.org/pub/mariadb/repo/${MARIADB_VER}/ubuntu precise main"'' ; |
|
63 | sudo add-apt-repository ''"deb http://ftp.osuosl.org/pub/mariadb/repo/${MARIADB_VER}/ubuntu precise main"'' ; | |
|
64 | sudo cp test/travis/mariadb.pref /etc/apt/preferences.d/mariadb.pref ; | |||
64 | sudo apt-get update ; |
|
65 | sudo apt-get update ; | |
65 | sudo DEBIAN_FRONTEND=noninteractive apt-get -q --yes --force-yes -f --option DPkg::Options::=--force-confnew install mariadb-server ; |
|
66 | sudo DEBIAN_FRONTEND=noninteractive apt-get -q --yes --force-yes -f --option DPkg::Options::=--force-confnew install mariadb-server ; | |
66 | sudo apt-get install libmariadbd-dev ; |
|
67 | sudo apt-get install libmariadbd-dev ; | |
67 | else |
|
68 | else | |
68 | echo mysql-apt-config mysql-apt-config/enable-repo select $DB | sudo debconf-set-selections ; |
|
69 | echo mysql-apt-config mysql-apt-config/enable-repo select $DB | sudo debconf-set-selections ; | |
69 | wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all.deb ; |
|
70 | wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all.deb ; | |
70 | sudo dpkg --install mysql-apt-config_0.2.1-1ubuntu12.04_all.deb ; |
|
71 | sudo dpkg --install mysql-apt-config_0.2.1-1ubuntu12.04_all.deb ; | |
71 | sudo apt-get update -q ; |
|
72 | sudo apt-get update -q ; | |
72 | sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew mysql-server ; |
|
73 | sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew mysql-server ; | |
73 | fi |
|
74 | fi | |
74 | fi |
|
75 | fi | |
75 | script: |
|
76 | script: | |
76 | - export DATABASE_ADAPTER=${DB} |
|
77 | - export DATABASE_ADAPTER=${DB} | |
77 | - "SCMS=bazaar,cvs,subversion,git,mercurial,filesystem" |
|
78 | - "SCMS=bazaar,cvs,subversion,git,mercurial,filesystem" | |
78 | - "export SCMS" |
|
79 | - "export SCMS" | |
79 | - "git --version" |
|
80 | - "git --version" | |
80 | - "bundle install" |
|
81 | - "bundle install" | |
81 | - "RUN_ON_NOT_OFFICIAL='' RUBY_VER=1.9 BRANCH=trunk bundle exec rake config/database.yml" |
|
82 | - "RUN_ON_NOT_OFFICIAL='' RUBY_VER=1.9 BRANCH=trunk bundle exec rake config/database.yml" | |
82 | - "bundle install" |
|
83 | - "bundle install" | |
83 | - "bundle exec rake ci:setup" |
|
84 | - "bundle exec rake ci:setup" | |
84 | - phantomjs --webdriver 4444 & |
|
85 | - phantomjs --webdriver 4444 & | |
85 | - JRUBY_OPTS=-J-Xmx1024m bundle exec rake test:${SUITE} |
|
86 | - JRUBY_OPTS=-J-Xmx1024m bundle exec rake test:${SUITE} | |
86 | notifications: |
|
87 | notifications: | |
87 | email: false |
|
88 | email: false |
General Comments 0
You need to be logged in to leave comments.
Login now