Home Using SQL Server LocalDB with Travis CI Windows Builds
Post
Cancel

Using SQL Server LocalDB with Travis CI Windows Builds

Travis CI now includes support for Windows builds. It doesn’t have SQL Server LocalDB installed by default currently, but it’s easy to install. Here’s an example Travis CI configuration that installs it using Chocolatey:

.travis.yml

1
2
3
4
5
6
7
8
9
10
11
12
language: shell

os: windows

before_script:
# Use mssqlserver2014-sqllocaldb rather than sqllocaldb package which has an issue:
# https://dba.stackexchange.com/questions/191393/localdb-v14-creates-wrong-path-for-mdf-files
- choco install mssqlserver2014-sqllocaldb
- powershell -Command "Set-ExecutionPolicy Bypass"

script:
- powershell -File build.ps1

Let me know if this was helpful!

This post is licensed under CC BY 4.0 by the author.

Using JavaScript Promises And async/await Together

Quickstart for Creating a Library Using the .NET Core CLI

Comments powered by Disqus.