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
a3a8bd4a
Unverified
Commit
a3a8bd4a
authored
Apr 22, 2019
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reworked SQL Server installer on Travis CI
parent
9b75cd5f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
22 deletions
+18
-22
.travis.yml
.travis.yml
+6
-0
install-mssql.sh
tests/travis/install-mssql.sh
+2
-22
install-sqlsrv-dependencies.sh
tests/travis/install-sqlsrv-dependencies.sh
+10
-0
No files found.
.travis.yml
View file @
a3a8bd4a
...
@@ -100,6 +100,7 @@ jobs:
...
@@ -100,6 +100,7 @@ jobs:
services
:
services
:
-
docker
-
docker
before_script
:
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-sqlsrv.sh
-
bash ./tests/travis/install-mssql-sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
-
stage
:
Test
...
@@ -109,6 +110,7 @@ jobs:
...
@@ -109,6 +110,7 @@ jobs:
services
:
services
:
-
docker
-
docker
before_script
:
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
-
bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
-
stage
:
Test
...
@@ -245,6 +247,7 @@ jobs:
...
@@ -245,6 +247,7 @@ jobs:
services
:
services
:
-
docker
-
docker
before_script
:
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-sqlsrv.sh
-
bash ./tests/travis/install-mssql-sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
-
stage
:
Test
...
@@ -254,6 +257,7 @@ jobs:
...
@@ -254,6 +257,7 @@ jobs:
services
:
services
:
-
docker
-
docker
before_script
:
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
-
bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
-
stage
:
Test
...
@@ -314,6 +318,7 @@ jobs:
...
@@ -314,6 +318,7 @@ jobs:
services
:
services
:
-
docker
-
docker
before_script
:
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-sqlsrv.sh
-
bash ./tests/travis/install-mssql-sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
-
stage
:
Test
...
@@ -323,6 +328,7 @@ jobs:
...
@@ -323,6 +328,7 @@ jobs:
services
:
services
:
-
docker
-
docker
before_script
:
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
-
bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
-
bash ./tests/travis/install-mssql.sh
...
...
tests/travis/install-mssql.sh
View file @
a3a8bd4a
...
@@ -2,12 +2,6 @@
...
@@ -2,12 +2,6 @@
set
-ex
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
echo
Setting up Microsoft SQL Server
sudo
docker pull microsoft/mssql-server-linux:2017-latest
sudo
docker pull microsoft/mssql-server-linux:2017-latest
...
@@ -15,24 +9,10 @@ sudo docker run \
...
@@ -15,24 +9,10 @@ sudo docker run \
-e
'ACCEPT_EULA=Y'
\
-e
'ACCEPT_EULA=Y'
\
-e
'SA_PASSWORD=Doctrine2018'
\
-e
'SA_PASSWORD=Doctrine2018'
\
-p
127.0.0.1:1433:1433
\
-p
127.0.0.1:1433:1433
\
--name
db
\
--name
mssql
\
-d
\
-d
\
microsoft/mssql-server-linux:2017-latest
microsoft/mssql-server-linux:2017-latest
sudo
docker
exec
-i
mssql bash
<<<
'until echo quit | /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -l 1 -U sa -P Doctrine2018 > /dev/null 2>&1 ; do sleep 1; done'
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
echo
SQL Server started
tests/travis/install-sqlsrv-dependencies.sh
0 → 100644
View file @
a3a8bd4a
#!/usr/bin/env bash
set
-ex
echo
Installing driver dependencies
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 unixodbc unixodbc-dev libssl1.0.0
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