Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
b9d7a366
Unverified
Commit
b9d7a366
authored
Jun 14, 2018
by
Michael Moravec
Committed by
Sergei Morozov
Dec 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: Test against MySQL 8.0 on Travis
parent
e1ed56c2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
129 additions
and
22 deletions
+129
-22
.travis.yml
.travis.yml
+18
-12
install-mysql-8.0.sh
tests/travis/install-mysql-8.0.sh
+13
-10
mysql.docker.travis.xml
tests/travis/mysql.docker.travis.xml
+49
-0
mysqli.docker.travis.xml
tests/travis/mysqli.docker.travis.xml
+49
-0
No files found.
.travis.yml
View file @
b9d7a366
...
...
@@ -56,9 +56,10 @@ jobs:
-
bash ./tests/travis/install-mysql-5.7.sh
-
stage
:
Test
php
:
7.2
env
:
DB=mysql MYSQL_VERSION=8.0 COVERAGE=yes
dist
:
xenial
env
:
DB=mysql.docker MYSQL_VERSION=8.0 COVERAGE=yes
sudo
:
required
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-mysql-8.0.sh
-
stage
:
Test
...
...
@@ -72,9 +73,10 @@ jobs:
-
bash ./tests/travis/install-mysql-5.7.sh
-
stage
:
Test
php
:
7.2
env
:
DB=mysqli MYSQL_VERSION=8.0 COVERAGE=yes
dist
:
xenial
env
:
DB=mysqli.docker MYSQL_VERSION=8.0 COVERAGE=yes
sudo
:
required
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-mysql-8.0.sh
-
stage
:
Test
...
...
@@ -207,16 +209,18 @@ jobs:
-
travis_retry composer update --prefer-dist --prefer-lowest
-
stage
:
Test
php
:
7.3
env
:
DB=mysql MYSQL_VERSION=8.0
dist
:
xenial
env
:
DB=mysql.docker MYSQL_VERSION=8.0
sudo
:
required
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-mysql-8.0.sh
-
stage
:
Test
php
:
7.3
env
:
DB=mysqli MYSQL_VERSION=8.0
dist
:
xenial
env
:
DB=mysqli.docker MYSQL_VERSION=8.0
sudo
:
required
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-mysql-8.0.sh
-
stage
:
Test
...
...
@@ -260,16 +264,18 @@ jobs:
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
php
:
nightly
env
:
DB=mysql MYSQL_VERSION=8.0
dist
:
xenial
env
:
DB=mysql.docker MYSQL_VERSION=8.0
sudo
:
required
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-mysql-8.0.sh
-
stage
:
Test
php
:
nightly
env
:
DB=mysqli MYSQL_VERSION=8.0
dist
:
xenial
env
:
DB=mysqli.docker MYSQL_VERSION=8.0
sudo
:
required
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-mysql-8.0.sh
-
stage
:
Test
...
...
tests/travis/install-mysql-8.0.sh
View file @
b9d7a366
...
...
@@ -2,15 +2,18 @@
set
-ex
echo
"
Install
ing MySQL 8.0..."
echo
"
Start
ing MySQL 8.0..."
echo
mysql-apt-config mysql-apt-config/select-server
select
mysql-8.0 |
sudo
debconf-set-selections
wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb
sudo
dpkg
--install
mysql-apt-config_0.8.10-1_all.deb
sudo
apt-get update
-q
sudo
apt-get
install
-q
-y
--force-yes
-o
Dpkg::Options::
=
--force-confnew
mysql-server
echo
-e
"[mysqld]
\n
default_authentication_plugin=mysql_native_password"
|
sudo tee
--append
/etc/mysql/my.cnf
sudo
/etc/init.d/mysql start
sudo
mysql_upgrade
echo
-e
"[mysqld]
\n
default_authentication_plugin=mysql_native_password"
>
/tmp/mysql-auth.cnf
mysql
--version
sudo
docker pull mysql:8.0
sudo
docker run
\
-d
\
-e
MYSQL_ALLOW_EMPTY_PASSWORD
=
yes
\
-e
MYSQL_DATABASE
=
doctrine_tests
\
-v
/tmp/mysql-auth.cnf:/etc/mysql/conf.d/auth.cnf:ro
\
-p
33306:3306
\
--name
mysql80
\
mysql:8.0
sudo
docker
exec
-i
mysql80 bash
<<<
'until echo \\q | mysql doctrine_tests > /dev/null 2>&1 ; do sleep 1; done'
tests/travis/mysql.docker.travis.xml
0 → 100644
View file @
b9d7a366
<?xml version="1.0" encoding="utf-8"?>
<phpunit
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"../../vendor/phpunit/phpunit/phpunit.xsd"
colors=
"true"
beStrictAboutOutputDuringTests=
"true"
beStrictAboutTodoAnnotatedTests=
"true"
failOnRisky=
"true"
failOnWarning=
"true"
>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_type"
value=
"pdo_mysql"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_username"
value=
"root"
/>
<var
name=
"db_password"
value=
""
/>
<var
name=
"db_name"
value=
"doctrine_tests"
/>
<var
name=
"db_port"
value=
"33306"
/>
<var
name=
"tmpdb_type"
value=
"pdo_mysql"
/>
<var
name=
"tmpdb_host"
value=
"127.0.0.1"
/>
<var
name=
"tmpdb_username"
value=
"root"
/>
<var
name=
"tmpdb_password"
value=
""
/>
<var
name=
"tmpdb_port"
value=
"33306"
/>
</php>
<testsuites>
<testsuite
name=
"Doctrine DBAL Test Suite"
>
<directory>
../Doctrine/Tests/DBAL
</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory
suffix=
".php"
>
../../lib/Doctrine
</directory>
</whitelist>
</filter>
<listeners>
<listener
class=
"Symfony\Bridge\PhpUnit\SymfonyTestsListener"
/>
</listeners>
<groups>
<exclude>
<group>
performance
</group>
<group>
locking_functional
</group>
</exclude>
</groups>
</phpunit>
tests/travis/mysqli.docker.travis.xml
0 → 100644
View file @
b9d7a366
<?xml version="1.0" encoding="utf-8"?>
<phpunit
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"../../vendor/phpunit/phpunit/phpunit.xsd"
colors=
"true"
beStrictAboutOutputDuringTests=
"true"
beStrictAboutTodoAnnotatedTests=
"true"
failOnRisky=
"true"
failOnWarning=
"true"
>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_type"
value=
"mysqli"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_username"
value=
"root"
/>
<var
name=
"db_password"
value=
""
/>
<var
name=
"db_name"
value=
"doctrine_tests"
/>
<var
name=
"db_port"
value=
"33306"
/>
<var
name=
"tmpdb_type"
value=
"mysqli"
/>
<var
name=
"tmpdb_host"
value=
"127.0.0.1"
/>
<var
name=
"tmpdb_username"
value=
"root"
/>
<var
name=
"tmpdb_password"
value=
""
/>
<var
name=
"tmpdb_port"
value=
"33306"
/>
</php>
<testsuites>
<testsuite
name=
"Doctrine DBAL Test Suite"
>
<directory>
../Doctrine/Tests/DBAL
</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory
suffix=
".php"
>
../../lib/Doctrine
</directory>
</whitelist>
</filter>
<listeners>
<listener
class=
"Symfony\Bridge\PhpUnit\SymfonyTestsListener"
/>
</listeners>
<groups>
<exclude>
<group>
performance
</group>
<group>
locking_functional
</group>
</exclude>
</groups>
</phpunit>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment