Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (25 sloc) 1014 Bytes
image: Visual Studio 2017
version: 0.9.0.{build}
services:
- mssql2016
- mysql
nuget:
project_feed: true
disable_publish_on_pr: true
before_build:
- cmd: |-
dotnet restore Resonance.Core/Resonance.core.csproj
dotnet restore Resonance.Tests/Resonance.Tests.csproj
dotnet restore Resonance.Demo/Resonance.Demo.csproj
before_test:
- cmd: |-
sqlcmd -S "(local)\SQL2016" -U "sa" -P "Password12!" -i "Resonance.Core\content\ResonanceDB.MsSql.sql"
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" -u root --password=Password12! -e "CREATE USER resonance IDENTIFIED BY 'Password12!'; GRANT ALL ON *.* TO resonance;"
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" -u root --password=Password12! < Resonance.Core\content\ResonanceDB.MySql.sql
build_script:
- cmd: dotnet build Resonance.Core -c Release
test_script:
- cmd: |-
dotnet test Resonance.Tests/Resonance.Tests.csproj -c Release
SET useMySql=true
dotnet test Resonance.Tests/Resonance.Tests.csproj -c Release