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
150a55b7
Unverified
Commit
150a55b7
authored
Mar 15, 2018
by
Michael Moravec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Travis: Test MS SQL Server 17
parent
9e68c3cc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
173 additions
and
0 deletions
+173
-0
.travis.yml
.travis.yml
+37
-0
install-mssql-pdo_sqlsrv.sh
tests/travis/install-mssql-pdo_sqlsrv.sh
+6
-0
install-mssql-sqlsrv.sh
tests/travis/install-mssql-sqlsrv.sh
+6
-0
install-mssql.sh
tests/travis/install-mssql.sh
+38
-0
pdo_sqlsrv.travis.xml
tests/travis/pdo_sqlsrv.travis.xml
+43
-0
sqlsrv.travis.xml
tests/travis/sqlsrv.travis.xml
+43
-0
No files found.
.travis.yml
View file @
150a55b7
...
...
@@ -277,6 +277,43 @@ jobs:
before_script
:
-
bash ./tests/travis/install-postgres-10.sh
-
stage
:
Test
env
:
DB=sqlsrv
sudo
:
required
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-mssql-$DB.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
php
:
7.2
env
:
DB=sqlsrv
sudo
:
required
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-mssql-$DB.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
php
:
7.1
env
:
DB=pdo_sqlsrv
sudo
:
required
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-mssql-$DB.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
php
:
7.2
env
:
DB=pdo_sqlsrv
sudo
:
required
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-mssql-$DB.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
php
:
7.1
env
:
DB=sqlite DEPENDENCIES=low
...
...
tests/travis/install-mssql-pdo_sqlsrv.sh
0 → 100644
View file @
150a55b7
#!/usr/bin/env bash
set
-ex
echo
"Installing extension"
pecl
install
pdo_sqlsrv-5.2.0RC1
tests/travis/install-mssql-sqlsrv.sh
0 → 100644
View file @
150a55b7
#!/usr/bin/env bash
set
-ex
echo
"Installing extension"
pecl
install
sqlsrv-5.2.0RC1
tests/travis/install-mssql.sh
0 → 100644
View file @
150a55b7
#!/usr/bin/env bash
set
-ex
echo
Installing drivers
curl https://packages.microsoft.com/keys/microsoft.asc |
sudo
apt-key add -
curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list |
sudo tee
/etc/apt/sources.list.d/mssql.list
sudo
apt-get update
ACCEPT_EULA
=
Y
sudo
apt-get
install
-qy
msodbcsql17 mssql-tools unixodbc libssl1.0.0
echo
Setting up Microsoft SQL Server
sudo
docker pull microsoft/mssql-server-linux:2017-latest
sudo
docker run
\
-e
'ACCEPT_EULA=Y'
\
-e
'SA_PASSWORD=Doctrine2018'
\
-p
127.0.0.1:1433:1433
\
--name
db
\
-d
\
microsoft/mssql-server-linux:2017-latest
retries
=
10
until
(
echo
quit | /opt/mssql-tools/bin/sqlcmd
-S
127.0.0.1
-l
1
-U
sa
-P
Doctrine2018 &> /dev/null
)
do
if
[[
"
$retries
"
-le
0
]]
;
then
echo
SQL Server did not start
exit
1
fi
retries
=
$((
retries
-
1
))
echo
Waiting
for
SQL Server to start...
sleep
2s
done
echo
SQL Server started
tests/travis/pdo_sqlsrv.travis.xml
0 → 100644
View file @
150a55b7
<?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"
verbose=
"true"
beStrictAboutOutputDuringTests=
"true"
beStrictAboutTodoAnnotatedTests=
"true"
failOnRisky=
"true"
>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_type"
value=
"pdo_sqlsrv"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_username"
value=
"sa"
/>
<var
name=
"db_password"
value=
"Doctrine2018"
/>
<var
name=
"db_name"
value=
"doctrine"
/>
<var
name=
"db_port"
value=
"1433"
/>
<var
name=
"tmpdb_type"
value=
"pdo_sqlsrv"
/>
<var
name=
"tmpdb_host"
value=
"127.0.0.1"
/>
<var
name=
"tmpdb_username"
value=
"sa"
/>
<var
name=
"tmpdb_password"
value=
"Doctrine2018"
/>
<var
name=
"tmpdb_port"
value=
"1433"
/>
</php>
<testsuites>
<testsuite
name=
"Doctrine DBAL Test Suite"
>
<directory>
../Doctrine/Tests/DBAL
</directory>
</testsuite>
</testsuites>
<listeners>
<listener
class=
"Symfony\Bridge\PhpUnit\SymfonyTestsListener"
/>
</listeners>
<groups>
<exclude>
<group>
performance
</group>
<group>
locking_functional
</group>
</exclude>
</groups>
</phpunit>
tests/travis/sqlsrv.travis.xml
0 → 100644
View file @
150a55b7
<?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"
verbose=
"true"
beStrictAboutOutputDuringTests=
"true"
beStrictAboutTodoAnnotatedTests=
"true"
failOnRisky=
"true"
>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_type"
value=
"sqlsrv"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_username"
value=
"sa"
/>
<var
name=
"db_password"
value=
"Doctrine2018"
/>
<var
name=
"db_name"
value=
"doctrine"
/>
<var
name=
"db_port"
value=
"1433"
/>
<var
name=
"tmpdb_type"
value=
"sqlsrv"
/>
<var
name=
"tmpdb_host"
value=
"127.0.0.1"
/>
<var
name=
"tmpdb_username"
value=
"sa"
/>
<var
name=
"tmpdb_password"
value=
"Doctrine2018"
/>
<var
name=
"tmpdb_port"
value=
"1433"
/>
</php>
<testsuites>
<testsuite
name=
"Doctrine DBAL Test Suite"
>
<directory>
../Doctrine/Tests/DBAL
</directory>
</testsuite>
</testsuites>
<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