Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial test for installing SQL server for Travis tests #8076

Merged
merged 2 commits into from Oct 15, 2018

Conversation

nyalldawson
Copy link
Collaborator

No description provided.

@nyalldawson nyalldawson added the Chore GitHub and other CI infrastructure changes label Oct 1, 2018
@nyalldawson
Copy link
Collaborator Author

An attempt to port OSGeo/gdal@121b330 so that we can run SQL server provider tests on Travis too.

docker pull microsoft/mssql-server-linux:2017-latest
sudo docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=DummyPassw0rd' -p 1433:1433 --name sql1 -d microsoft/mssql-server-linux:2017-latest
sleep 10
docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd -l 30 -S localhost -U SA -P DummyPassw0rd -Q "CREATE DATABASE TestDB;"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this part should go into docker-compose.travis.yml

echo "Importing SQL Server test data..."

export SQLUSER=sa
export SQLHOST=localhost
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SQLHOST=sqlserver ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chore GitHub and other CI infrastructure changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants