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