##// END OF EJS Templates
2.6-stable: travis: allow failures on jruby-9.0.0.0 postgresql...
Toshi MARUYAMA -
r14188:23ab68f628ee
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.8.7
7 7 - 1.9.2
8 8 - 1.9.3
9 9 - 2.0
10 10 - 2.1
11 11 - 2.2
12 12 - jruby-9.0.0.0
13 13 - jruby
14 14 env:
15 15 - "SUITE=units DB=postgresql"
16 16 - "SUITE=functionals DB=postgresql"
17 17 - "SUITE=integration DB=postgresql"
18 18 - "SUITE=units DB=postgresql-8.4"
19 19 - "SUITE=functionals DB=postgresql-8.4"
20 20 - "SUITE=integration DB=postgresql-8.4"
21 21 - "SUITE=units DB=postgresql-9.1"
22 22 - "SUITE=functionals DB=postgresql-9.1"
23 23 - "SUITE=integration DB=postgresql-9.1"
24 24 - "SUITE=units DB=postgresql-9.2"
25 25 - "SUITE=functionals DB=postgresql-9.2"
26 26 - "SUITE=integration DB=postgresql-9.2"
27 27 - "SUITE=units DB=postgresql-9.3"
28 28 - "SUITE=functionals DB=postgresql-9.3"
29 29 - "SUITE=integration DB=postgresql-9.3"
30 30 - "SUITE=units DB=postgresql-9.4"
31 31 - "SUITE=functionals DB=postgresql-9.4"
32 32 - "SUITE=integration DB=postgresql-9.4"
33 33 - "SUITE=units DB=postgresql-9.5"
34 34 - "SUITE=functionals DB=postgresql-9.5"
35 35 - "SUITE=integration DB=postgresql-9.5"
36 36 - "SUITE=units DB=mysql"
37 37 - "SUITE=functionals DB=mysql"
38 38 - "SUITE=integration DB=mysql"
39 39 - "SUITE=units DB=sqlite3"
40 40 - "SUITE=functionals DB=sqlite3"
41 41 - "SUITE=integration DB=sqlite3"
42 42 matrix:
43 43 allow_failures:
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 - rvm: jruby-9.0.0.0
49 env: "SUITE=units DB=postgresql-9.5"
50 - rvm: jruby-9.0.0.0
51 env: "SUITE=functionals DB=postgresql-9.5"
52 - rvm: jruby-9.0.0.0
53 env: "SUITE=integration DB=postgresql-9.5"
48 54 before_install:
49 55 # https://github.com/travis-ci/travis-ci/issues/4720
50 56 - if [[ ${TRAVIS_RUBY_VERSION} =~ jruby-9\.0 ]] ;
51 57 then
52 58 rvm get master ;
53 59 rvm use ${TRAVIS_RUBY_VERSION} --install ;
54 60 ruby --version ;
55 61 fi
56 62 - "sudo apt-get update -qq"
57 63 - "sudo apt-get --no-install-recommends install bzr cvs git mercurial subversion"
58 64 - if [[ $DB =~ postgresql ]] ;
59 65 then
60 66 if [[ $DB =~ postgresql- ]] ;
61 67 then
62 68 PG_VER=`echo $DB | sed -e 's/postgresql-//'` ;
63 69 sudo service postgresql stop ;
64 70 sudo apt-get -y -qq --purge remove postgresql libpq-dev libpq5 postgresql-client-common postgresql-common ;
65 71 sudo rm -rf /var/lib/postgresql ;
66 72 sudo sh -c "echo deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main ${PG_VER} >> /etc/apt/sources.list.d/pgdg.list" ;
67 73 wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - ;
68 74 sudo apt-get update -qq ;
69 75 sudo apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::="--force-confnew" install postgresql-${PG_VER} postgresql-contrib-${PG_VER} postgresql-server-dev-${PG_VER} ;
70 76 echo "local all all trust" | sudo tee /etc/postgresql/${PG_VER}/main/pg_hba.conf ;
71 77 echo "host all all 127.0.0.1/32 trust" | sudo tee -a /etc/postgresql/${PG_VER}/main/pg_hba.conf ;
72 78 echo "host all all ::1/128 trust" | sudo tee -a /etc/postgresql/${PG_VER}/main/pg_hba.conf ;
73 79 sudo service postgresql restart ;
74 80 fi ;
75 81 psql --version ;
76 82 psql -c "SHOW SERVER_VERSION" -U postgres ;
77 83 psql -c "SHOW SERVER_ENCODING" -U postgres ;
78 84 psql -c "SHOW DateStyle" -U postgres ;
79 85 fi
80 86 script:
81 87 - export DATABASE_ADAPTER=${DB}
82 88 - "SCMS=bazaar,cvs,subversion,git,mercurial,filesystem"
83 89 - "export SCMS"
84 90 - "git --version"
85 91 - "bundle install"
86 92 - "RUN_ON_NOT_OFFICIAL='' RUBY_VER=1.9 BRANCH=trunk bundle exec rake config/database.yml"
87 93 - "bundle install"
88 94 - export TEST_SUITE=${SUITE}
89 95 - JRUBY_OPTS='-J-Xmx1024m -J-XX:MaxPermSize=1024m' bundle exec rake ci
90 96 notifications:
91 97 email: false
General Comments 0
You need to be logged in to leave comments. Login now