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
945b2710
Unverified
Commit
945b2710
authored
Apr 23, 2019
by
Sergei Morozov
Committed by
GitHub
Apr 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3528 from morozov/travis-sqlsrv
Reworked SQL Server installer on Travis CI
parents
2124cd7d
a3a8bd4a
Changes
3
Show 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 @
945b2710
...
...
@@ -100,6 +100,7 @@ jobs:
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
...
...
@@ -109,6 +110,7 @@ jobs:
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
...
...
@@ -245,6 +247,7 @@ jobs:
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
...
...
@@ -254,6 +257,7 @@ jobs:
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
...
...
@@ -314,6 +318,7 @@ jobs:
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
-
stage
:
Test
...
...
@@ -323,6 +328,7 @@ jobs:
services
:
-
docker
before_script
:
-
bash ./tests/travis/install-sqlsrv-dependencies.sh
-
bash ./tests/travis/install-mssql-pdo_sqlsrv.sh
-
bash ./tests/travis/install-mssql.sh
...
...
tests/travis/install-mssql.sh
View file @
945b2710
...
...
@@ -2,12 +2,6 @@
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
...
...
@@ -15,24 +9,10 @@ sudo docker run \
-e
'ACCEPT_EULA=Y'
\
-e
'SA_PASSWORD=Doctrine2018'
\
-p
127.0.0.1:1433:1433
\
--name
db
\
--name
mssql
\
-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
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'
echo
SQL Server started
tests/travis/install-sqlsrv-dependencies.sh
0 → 100644
View file @
945b2710
#!/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