-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
50 lines (49 loc) · 1.77 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '1.0.{build}'
image:
- Ubuntu
branches:
only:
- master
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- sh: git config --global core.autocrlf true
install:
# Install repo specific stuff here
dotnet_csproj:
patch: true
file: '**\Evolve.Migrations.Helper.csproj'
version: '{version}'
version_prefix: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
- sh: 'echo Packaging version: $APPVEYOR_BUILD_VERSION'
# Display .NET Core version
- sh: dotnet --list-sdks
# Display minimal restore text
- sh: dotnet restore ./Evolve.Migrations.Helper/Evolve.Migrations.Helper.csproj
build_script:
# output will be in ./src/bin/debug/netcoreapp1.1/publish
- sh: dotnet publish -c Release ./Evolve.Migrations.Helper/Evolve.Migrations.Helper.csproj -f netcoreapp3.1 -r win-x64 --no-self-contained
- sh: dotnet publish -c Release ./Evolve.Migrations.Helper/Evolve.Migrations.Helper.csproj -f netcoreapp3.1 -r linux-x64 --no-self-contained
after_build:
# For once the build has completed
artifacts:
- path: './Evolve.Migrations.Helper/bin/Release/netcoreapp3.1/win-x64/publish'
name: evolve-migrations-helper_$(APPVEYOR_BUILD_VERSION)_win-x64
type: WebDeployPackage
- path: './Evolve.Migrations.Helper/bin/Release/netcoreapp3.1/linux-x64/publish'
name: 'evolve-migrations-helper_$(APPVEYOR_BUILD_VERSION)_linux-x64'
type: WebDeployPackage
clone_depth: 1
test_script:
# restore packages for our unit tests
# - cmd: dotnet restore ./tests/tests.csproj --verbosity m
# run the unit tests (requires changing into the test directory)
# - cmd: cd tests
# - cmd: dotnet xunit
on_finish :
# any cleanup in here
deploy: off