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