-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyorSynkerBatch.yml
51 lines (51 loc) · 1.4 KB
/
appveyorSynkerBatch.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
51
version: '1.0.{build}'
image: Visual Studio 2017
configuration: Release
branches:
only:
- master
- Develop
only_commits:
message: /buildbatch:|build:/
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
# environment variables
environment:
ASPNETCORE_ENVIRONMENT: 'Production'
matrix:
fast_finish: true
before_build:
- echo ------------ Publish Sync batch version %APPVEYOR_BUILD_NUMBER% ----------
- echo Display .NET Core version
- cmd: dotnet --version
# Display minimal restore text
- cmd: cd ./SyncLibrary
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
build_script:
- cmd: dotnet publish -c %CONFIGURATION% -r linux-x64 --verbosity m -o artifacts
- ls
test_script:
- echo restore packages for our unit tests
- cmd: cd ../hfa.synker.batch.test/
- cmd: dotnet restore ./hfa.synker.batch.test.csproj --verbosity m
- echo run the unit tests (requires changing into the test directory)
- cmd: dotnet xunit -appveyor -notrait "Category=Integration"
artifacts:
- path: .\SyncLibrary\artifacts
name: SynkerBatch
type: zip
on_finish :
# any cleanup in here
#deploy:
# - provider: Environment
# name: Synker.batch PROD
# on:
# branch: Develop