remove mysql from ci

pull/7367/head
ulferts 6 years ago
parent 5ea8e704dd
commit 8e395c5982
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 168
      .travis.yml
  2. 17
      script/ci/setup.sh
  3. 43
      script/templates/database.travis.mysql.yml

@ -85,210 +85,138 @@ jobs:
- bash script/ci/runner.sh npm
- stage: test
name: 'spec_legacy (1/1) - mysql'
name: 'spec_legacy (1/1) - standard'
script:
- bash script/ci/setup.sh spec_legacy mysql
- bash script/ci/setup.sh spec_legacy
- bash script/ci/runner.sh spec_legacy 1 1
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'spec_legacy (1/1) - postgres standard'
name: 'spec_legacy (1/1) - bim'
script:
- bash script/ci/setup.sh spec_legacy postgres
- bash script/ci/runner.sh spec_legacy 1 1
- stage: test
name: 'spec_legacy (1/1) - postgres bim'
script:
- bash script/ci/setup.sh spec_legacy postgres bim
- bash script/ci/setup.sh spec_legacy bim
- bash script/ci/runner.sh spec_legacy 1 1
if: head_branch =~ /^(bim\/|dev|release\/)/
- stage: test
name: 'units (1/4) - mysql'
name: 'units (1/4) - standard'
script:
- bash script/ci/setup.sh units mysql
- bash script/ci/setup.sh units
- bash script/ci/runner.sh units 4 1
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'units (1/4) - postgres standard'
name: 'units (1/4) - bim'
script:
- bash script/ci/setup.sh units postgres
- bash script/ci/runner.sh units 4 1
- stage: test
name: 'units (1/4) - postgres bim'
script:
- bash script/ci/setup.sh units postgres bim
- bash script/ci/setup.sh units bim
- bash script/ci/runner.sh units 4 1
if: head_branch =~ /^(bim\/|dev|release\/)/
- stage: test
name: 'units (2/4) - mysql'
script:
- bash script/ci/setup.sh units mysql
- bash script/ci/runner.sh units 4 2
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'units (2/4) - postgres standard'
name: 'units (2/4) - standard'
script:
- bash script/ci/setup.sh units postgres
- bash script/ci/setup.sh units
- bash script/ci/runner.sh units 4 2
- stage: test
name: 'units (2/4) - postgres bim'
name: 'units (2/4) - bim'
script:
- bash script/ci/setup.sh units postgres bim
- bash script/ci/setup.sh units bim
- bash script/ci/runner.sh units 4 2
if: head_branch =~ /^(bim\/|dev|release\/)/
- stage: test
name: 'units (3/4) - mysql'
name: 'units (3/4) - standard'
script:
- bash script/ci/setup.sh units mysql
- bash script/ci/setup.sh units
- bash script/ci/runner.sh units 4 3
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'units (3/4) - postgres standard'
name: 'units (3/4) - bim'
script:
- bash script/ci/setup.sh units postgres
- bash script/ci/runner.sh units 4 3
- stage: test
name: 'units (3/4) - postgres bim'
script:
- bash script/ci/setup.sh units postgres bim
- bash script/ci/setup.sh units bim
- bash script/ci/runner.sh units 4 3
if: head_branch =~ /^(bim\/|dev|release\/)/
- stage: test
name: 'units (4/4) - mysql'
name: 'units (4/4) - standard'
script:
- bash script/ci/setup.sh units mysql
- bash script/ci/setup.sh units
- bash script/ci/runner.sh units 4 4
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'units (4/4) - postgres standard'
name: 'units (4/4) - bim'
script:
- bash script/ci/setup.sh units postgres
- bash script/ci/runner.sh units 4 4
- stage: test
name: 'units (4/4) - postgres bim'
script:
- bash script/ci/setup.sh units postgres bim
- bash script/ci/setup.sh units bim
- bash script/ci/runner.sh units 4 4
if: head_branch =~ /^(bim\/|dev|release\/)/
- stage: test
name: 'features (1/4) - mysql'
script:
- bash script/ci/setup.sh features mysql
- bash script/ci/runner.sh features 4 1
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'features (1/4) - postgres standard'
name: 'features (1/4) - standard'
script:
- bash script/ci/setup.sh features postgres
- bash script/ci/setup.sh features
- bash script/ci/runner.sh features 4 1
- stage: test
name: 'features (1/4) - postgres bim'
name: 'features (1/4) - bim'
script:
- bash script/ci/setup.sh features postgres bim
- bash script/ci/setup.sh features bim
- bash script/ci/runner.sh features 4 1
if: head_branch =~ /^(bim\/|dev|release\/)/
- stage: test
name: 'features (2/4) - mysql'
name: 'features (2/4) - standard'
script:
- bash script/ci/setup.sh features mysql
- bash script/ci/setup.sh features
- bash script/ci/runner.sh features 4 2
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'features (2/4) - postgres standard'
name: 'features (2/4) - bim'
script:
- bash script/ci/setup.sh features postgres
- bash script/ci/runner.sh features 4 2
- stage: test
name: 'features (2/4) - postgres bim'
script:
- bash script/ci/setup.sh features postgres bim
- bash script/ci/setup.sh features bim
- bash script/ci/runner.sh features 4 2
if: head_branch =~ /^(bim\/|dev|release\/)/
- stage: test
name: 'features (3/4) - mysql'
name: 'features (3/4) - standard'
script:
- bash script/ci/setup.sh features mysql
- bash script/ci/setup.sh features
- bash script/ci/runner.sh features 4 3
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'features (3/4) - postgres standard'
name: 'features (3/4) - bim'
script:
- bash script/ci/setup.sh features postgres
- bash script/ci/runner.sh features 4 3
- stage: test
name: 'features (3/4) - postgres bim'
script:
- bash script/ci/setup.sh features postgres bim
- bash script/ci/setup.sh features bim
- bash script/ci/runner.sh features 4 3
if: head_branch =~ /^(bim\/|dev|release\/)/
- stage: test
name: 'features (4/4) - mysql'
script:
- bash script/ci/setup.sh features mysql
- bash script/ci/runner.sh features 4 4
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'features (4/4) - postgres standard'
name: 'features (4/4) - standard'
script:
- bash script/ci/setup.sh features postgres
- bash script/ci/setup.sh features
- bash script/ci/runner.sh features 4 4
- stage: test
name: 'features (4/4) - postgres bim'
name: 'features (4/4) - bim'
script:
- bash script/ci/setup.sh features postgres bim
- bash script/ci/setup.sh features bim
- bash script/ci/runner.sh features 4 4
if: head_branch =~ /^(bim\/|dev|release\/)/
- stage: test
name: 'plugins:units (1/1) - mysql'
name: 'plugins:units (1/1) - standard'
script:
- bash script/ci/setup.sh plugins:units mysql
- bash script/ci/runner.sh plugins:units 1 1
if: env(SKIP_MYSQL_TESTING) IS blank AND head_branch !~ /^core\//
- stage: test
name: 'plugins:units (1/1) - postgres standard'
script:
- bash script/ci/setup.sh plugins:units postgres
- bash script/ci/setup.sh plugins:units
- bash script/ci/runner.sh plugins:units 1 1
if: head_branch !~ /^core\//
- stage: test
name: 'plugins:units (1/1) - postgres bim'
name: 'plugins:units (1/1) - bim'
script:
- bash script/ci/setup.sh plugins:units postgres bim
- bash script/ci/setup.sh plugins:units bim
- bash script/ci/runner.sh plugins:units 1 1
if: head_branch =~ /^(bim\/|dev|release\/)/
- stage: test
name: 'plugins:features (1/1) - mysql'
name: 'plugins:features (1/1) - standard'
script:
- bash script/ci/setup.sh plugins:features mysql
- bash script/ci/runner.sh plugins:features 1 1
if: env(SKIP_MYSQL_TESTING) IS blank AND head_branch !~ /^core\//
- stage: test
name: 'plugins:features (1/1) - postgres standard'
script:
- bash script/ci/setup.sh plugins:features postgres
- bash script/ci/setup.sh plugins:features
- bash script/ci/runner.sh plugins:features 1 1
if: head_branch !~ /^core\//
- stage: test
name: 'plugins:features (1/1) - postgres bim'
name: 'plugins:features (1/1) - bim'
script:
- bash script/ci/setup.sh plugins:features postgres bim
- bash script/ci/setup.sh plugins:features bim
- bash script/ci/runner.sh plugins:features 1 1
if: head_branch =~ /^(bim\/|dev|release\/)/
- stage: test
name: 'plugins:cucumber (1/1) - mysql'
script:
- bash script/ci/setup.sh plugins:cucumber mysql
- bash script/ci/runner.sh plugins:cucumber 1 1
if: env(SKIP_MYSQL_TESTING) IS blank AND head_branch !~ /^core\//
- stage: test
name: 'plugins:cucumber (1/1) - postgres standard'
name: 'plugins:cucumber (1/1) - standard'
script:
- bash script/ci/setup.sh plugins:cucumber postgres
- bash script/ci/setup.sh plugins:cucumber
- bash script/ci/runner.sh plugins:cucumber 1 1
if: head_branch !~ /^core\//
- stage: test
name: 'plugins:cucumber (1/1) - postgres bim'
name: 'plugins:cucumber (1/1) - bim'
script:
- bash script/ci/setup.sh plugins:cucumber postgres bim
- bash script/ci/setup.sh plugins:cucumber bim
- bash script/ci/runner.sh plugins:cucumber 1 1
if: head_branch =~ /^(bim\/|dev|release\/)/

@ -33,8 +33,7 @@ set -e
# script/ci/setup.sh
# $1 = TEST_SUITE
# $2 = DB
# $3 = OPENPROJECT_EDITION
# $2 = OPENPROJECT_EDITION
run() {
echo $1;
@ -44,17 +43,11 @@ run() {
eval $2;
}
if [ $2 = "mysql" ]; then
run "mysql -u root -e \"CREATE DATABASE IF NOT EXISTS travis_ci_test DEFAULT CHARACTER SET = 'utf8' DEFAULT COLLATE 'utf8_general_ci';\""
run "mysql -u root -e \"GRANT ALL ON travis_ci_test.* TO 'travis'@'localhost';\""
run "cp script/templates/database.travis.mysql.yml config/database.yml"
elif [ $2 = "postgres" ]; then
run "psql -c 'create database travis_ci_test;' -U postgres"
run "cp script/templates/database.travis.postgres.yml config/database.yml"
fi
run "psql -c 'create database travis_ci_test;' -U postgres"
run "cp script/templates/database.travis.postgres.yml config/database.yml"
if [ "$3" = "bim" ]; then
export OPENPROJECT_EDITION="$3";
if [ "$2" = "bim" ]; then
export OPENPROJECT_EDITION="$2";
else
unset OPENPROJECT_EDITION
fi

@ -1,43 +0,0 @@
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
# Copyright (C) 2006-2017 Jean-Philippe Lang
# Copyright (C) 2010-2013 the ChiliProject Team
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# See docs/COPYRIGHT.rdoc for more details.
#++
test:
adapter: mysql2
database: travis_ci_test
username: travis
encoding: utf8
pool: 20
variables:
sql_mode:
"no_auto_value_on_zero,\
strict_trans_tables,\
no_zero_date,\
strict_all_tables,\
no_zero_in_date,\
error_for_division_by_zero,\
no_engine_substitution"
Loading…
Cancel
Save