@@ -1,91 +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.0.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 | |||
|
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 | before_install: |
|
54 | before_install: | |
49 | # https://github.com/travis-ci/travis-ci/issues/4720 |
|
55 | # https://github.com/travis-ci/travis-ci/issues/4720 | |
50 | - if [[ ${TRAVIS_RUBY_VERSION} =~ jruby-9\.0 ]] ; |
|
56 | - if [[ ${TRAVIS_RUBY_VERSION} =~ jruby-9\.0 ]] ; | |
51 | then |
|
57 | then | |
52 | rvm get master ; |
|
58 | rvm get master ; | |
53 | rvm use ${TRAVIS_RUBY_VERSION} --install ; |
|
59 | rvm use ${TRAVIS_RUBY_VERSION} --install ; | |
54 | ruby --version ; |
|
60 | ruby --version ; | |
55 | fi |
|
61 | fi | |
56 | - "sudo apt-get update -qq" |
|
62 | - "sudo apt-get update -qq" | |
57 | - "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" | |
58 | - if [[ $DB =~ postgresql ]] ; |
|
64 | - if [[ $DB =~ postgresql ]] ; | |
59 | then |
|
65 | then | |
60 | if [[ $DB =~ postgresql- ]] ; |
|
66 | if [[ $DB =~ postgresql- ]] ; | |
61 | then |
|
67 | then | |
62 | PG_VER=`echo $DB | sed -e 's/postgresql-//'` ; |
|
68 | PG_VER=`echo $DB | sed -e 's/postgresql-//'` ; | |
63 | sudo service postgresql stop ; |
|
69 | sudo service postgresql stop ; | |
64 | 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 ; | |
65 | sudo rm -rf /var/lib/postgresql ; |
|
71 | sudo rm -rf /var/lib/postgresql ; | |
66 | 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" ; | |
67 | 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 - ; | |
68 | sudo apt-get update -qq ; |
|
74 | sudo apt-get update -qq ; | |
69 | 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} ; | |
70 | 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 ; | |
71 | 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 ; | |
72 | 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 ; | |
73 | sudo service postgresql restart ; |
|
79 | sudo service postgresql restart ; | |
74 | fi ; |
|
80 | fi ; | |
75 | psql --version ; |
|
81 | psql --version ; | |
76 | psql -c "SHOW SERVER_VERSION" -U postgres ; |
|
82 | psql -c "SHOW SERVER_VERSION" -U postgres ; | |
77 | psql -c "SHOW SERVER_ENCODING" -U postgres ; |
|
83 | psql -c "SHOW SERVER_ENCODING" -U postgres ; | |
78 | psql -c "SHOW DateStyle" -U postgres ; |
|
84 | psql -c "SHOW DateStyle" -U postgres ; | |
79 | fi |
|
85 | fi | |
80 | script: |
|
86 | script: | |
81 | - export DATABASE_ADAPTER=${DB} |
|
87 | - export DATABASE_ADAPTER=${DB} | |
82 | - "SCMS=bazaar,cvs,subversion,git,mercurial,filesystem" |
|
88 | - "SCMS=bazaar,cvs,subversion,git,mercurial,filesystem" | |
83 | - "export SCMS" |
|
89 | - "export SCMS" | |
84 | - "git --version" |
|
90 | - "git --version" | |
85 | - "bundle install" |
|
91 | - "bundle install" | |
86 | - "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" | |
87 | - "bundle install" |
|
93 | - "bundle install" | |
88 | - export TEST_SUITE=${SUITE} |
|
94 | - export TEST_SUITE=${SUITE} | |
89 | - 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 | |
90 | notifications: |
|
96 | notifications: | |
91 | email: false |
|
97 | email: false |
General Comments 0
You need to be logged in to leave comments.
Login now