Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (34 sloc) 1.02 KB
version: '1.0.{build}'
image: Visual Studio 2017
branches:
only:
- master
init:
# Good practice, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
install:
# Install repo specific stuff here
before_build:
# Display .NET Core version
- cmd: dotnet --version
# Display minimal restore text
- cmd: dotnet restore --verbosity m
build_script:
# output will be in /.src/GT86Registry.Web/bin/Debug/netcoreapp2.1/publish/
- cmd: dotnet publish ./src/GT86Registry.Web/GT86Registry.Web.csproj
after_build:
# For once the build has completed
artifacts:
- path: '\src\GT86Registry.Web\bin\Debug\netcoreapp2.1\publish\'
name: GT86Registry
type: WebDeployPackage
clone_depth: 1
test_script:
# restore packages for our unit tests
- cmd: dotnet restore ./tests/UnitTests/UnitTests.csproj --verbosity m
# run the unit tests (requires changing into the test directory)
- cmd: cd tests/UnitTests
- cmd: dotnet test
on_finish :
# any cleanup in here
deploy: off
You can’t perform that action at this time.