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
9093b7b8
Unverified
Commit
9093b7b8
authored
Aug 16, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test MySQLi connection via TLS on Travis
parent
c88c9267
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
0 deletions
+55
-0
.travis.yml
.travis.yml
+3
-0
docker-run-mysql-or-mariadb.sh
tests/travis/docker-run-mysql-or-mariadb.sh
+8
-0
mysqli-tls.docker.travis.xml
tests/travis/mysqli-tls.docker.travis.xml
+44
-0
No files found.
.travis.yml
View file @
9093b7b8
...
@@ -185,6 +185,9 @@ jobs:
...
@@ -185,6 +185,9 @@ jobs:
-
stage
:
Test
-
stage
:
Test
php
:
7.4
php
:
7.4
env
:
DB=mysqli.docker IMAGE=mysql:8.0
env
:
DB=mysqli.docker IMAGE=mysql:8.0
-
stage
:
Test
php
:
7.4
env
:
DB=mysqli-tls.docker IMAGE=mysql:8.0 TLS=yes
-
stage
:
Test
-
stage
:
Test
php
:
7.4
php
:
7.4
env
:
DB=mariadb.docker IMAGE=mariadb:10.3
env
:
DB=mariadb.docker IMAGE=mariadb:10.3
...
...
tests/travis/docker-run-mysql-or-mariadb.sh
View file @
9093b7b8
...
@@ -40,3 +40,11 @@ while true; do
...
@@ -40,3 +40,11 @@ while true; do
;;
;;
esac
esac
done
done
if
[[
"
$TLS
"
==
"yes"
]]
then
for
file
in
"ca.pem"
"client-cert.pem"
"client-key.pem"
do
docker
cp
"rdbms:/var/lib/mysql/
$file
"
.
done
fi
tests/travis/mysqli-tls.docker.travis.xml
0 → 100644
View file @
9093b7b8
<?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>
<var
name=
"db_driver"
value=
"mysqli"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_port"
value=
"33306"
/>
<var
name=
"db_ssl_ca"
value=
"ca.pem"
/>
<var
name=
"db_ssl_cert"
value=
"client-cert.pem"
/>
<var
name=
"db_ssl_key"
value=
"client-key.pem"
/>
<!-- Use MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT since there's no way to generate a certificate
with a proper common name (CN) on Travis. This flag must be not used in production settings. -->
<var
name=
"db_driver_option_flags"
value=
"64"
/>
<var
name=
"db_user"
value=
"root"
/>
<var
name=
"db_dbname"
value=
"doctrine_tests"
/>
</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>
<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