From a9c373f4ecf8dbccbf2e5f9886195b46b8a4f056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Thu, 7 Sep 2017 19:52:52 +0200 Subject: [PATCH] Update required dist to :trusty (#5906) Travis is phasing out support for Ubuntu precise environments. [ci skip] --- .travis.yml | 2 +- script/ci_setup.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0b524b4700..847e9f139a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ rvm: - 2.4.1 sudo: false -dist: precise +dist: trusty cache: bundler: true diff --git a/script/ci_setup.sh b/script/ci_setup.sh index 7065aea2ed..fc2ac75ea5 100644 --- a/script/ci_setup.sh +++ b/script/ci_setup.sh @@ -42,7 +42,8 @@ run() { } if [ $2 = "mysql" ]; then - run "mysql -e 'create database travis_ci_test;'" + 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