diff --git a/.travis.yml b/.travis.yml index 47f092e6..ddf71306 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,13 +23,15 @@ language: ruby sudo: true -dist: xenial +dist: bionic rvm: - 2.6 -before_install: - - mysql -e 'CREATE DATABASE IF NOT EXISTS test CHARACTER SET utf8mb4;' +before_script: + - sudo mysql -e 'CREATE DATABASE IF NOT EXISTS test CHARACTER SET utf8mb4;' + - sudo mysql -e "CREATE USER 'dmsf'@'localhost' IDENTIFIED BY 'eGCq9ueVpUH3'"; + - sudo mysql -e "GRANT ALL PRIVILEGES ON test.* TO 'dmsf'@'localhost'"; - psql -c 'create database test;' -U postgres - export WORKSPACE=`pwd`/workspace - export PATH_TO_DMSF=`pwd` @@ -40,8 +42,6 @@ before_install: - bash -x ./test/ci/redmine_install.sh -c - bash -x ./test/ci/redmine_install.sh -i -install: - script: - bash -x ./test/ci/redmine_install.sh -t @@ -49,6 +49,7 @@ after_script: - bash -x ./test/ci/redmine_install.sh -u env: + global: - DB=sqlite REDMINE_GIT_TAG=4.0-stable - DB=mysql REDMINE_GIT_TAG=4.0-stable - DB=postgres REDMINE_GIT_TAG=4.0-stable @@ -63,4 +64,4 @@ services: - postgresql addons: - mariadb: '10.3' + mariadb: '10.4' diff --git a/Gemfile b/Gemfile index 32921442..81a9bebb 100644 --- a/Gemfile +++ b/Gemfile @@ -20,6 +20,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +source 'https://rubygems.org' + gem 'zip-zip' gem 'simple_enum' gem 'uuidtools' diff --git a/test/ci/mysql.yml b/test/ci/mysql.yml index 01381c93..dad1f7b7 100644 --- a/test/ci/mysql.yml +++ b/test/ci/mysql.yml @@ -2,6 +2,7 @@ test: adapter: mysql2 database: test - username: root + username: dmsf + password: "eGCq9ueVpUH3" encoding: utf8mb4 collation: utf8mb4_unicode_ci \ No newline at end of file