-
Notifications
You must be signed in to change notification settings - Fork 12
/
appveyor.yml
39 lines (28 loc) · 1.09 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
version: 0.0.{build}
branches:
only:
- master
image: Ubuntu
install:
- sh: |
. ./build/git_versioning.sh
export APP_VERSION=${version}
export FILE_VERSION=${fileVersion}
export INFORMATIONAL_VERSION=${informationVersion}
echo "exported app version is $APP_VERSION"
echo "exported file version is $FILE_VERSION"
echo "exported info version is $INFORMATIONAL_VERSION"
- ps: Update-AppveyorBuild -Version $env:APP_VERSION
build_script:
- sh: |
dotnet build Sprache.Calc /p:Version=$APP_VERSION /p:FileVersion=$FILE_VERSION /p:InformationVersion="$INFORMATIONAL_VERSION" -c Release -v Minimal /l:"/opt/appveyor/build-agent/AppVeyor.MSBuildLogger.dll"
dotnet pack Sprache.Calc /p:Version=$APP_VERSION /p:FileVersion=$FILE_VERSION /p:InformationVersion="$INFORMATIONAL_VERSION" -c Release -v Minimal --include-symbols --include-source --no-build /l:"/opt/appveyor/build-agent/AppVeyor.MSBuildLogger.dll"
test_script:
- sh: |
dotnet test
artifacts:
- path: '**\Sprache.*.nupkg'
name: Packages
#deploy:
# - provider: Environment
# name: MyGet development feed