forked from LiveSplit/LiveSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
60 lines (46 loc) · 2.01 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
51
52
53
54
55
56
57
58
59
60
version: 1.7.6-{build}-{branch}
os: Visual Studio 2017
configuration: Release
before_build:
- git config --global credential.helper store
- ps: Add-Content "$HOME\.git-credentials" "https://$($env:GITHUB_TOKEN):[email protected]`n"
- git config --global user.email "[email protected]"
- git config --global user.name "AppVeyor"
- git submodule update --init --recursive
- mkdir LiveSplit\LiveSplit.Core\Updates\GitInfo
- git describe --dirty --always --long --tags > LiveSplit\LiveSplit.Core\Updates\GitInfo\version.txt
- git rev-parse --abbrev-ref HEAD > LiveSplit\LiveSplit.Core\Updates\GitInfo\branch.txt
- git rev-parse HEAD > LiveSplit\LiveSplit.Core\Updates\GitInfo\revision.txt
- nuget restore LiveSplit\LiveSplit.sln
build_script:
- msbuild LiveSplit\LiveSplit.sln /verbosity:minimal /p:NoWarn=1591 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
notifications:
- provider: Email
to:
on_build_success: false
on_build_failure: true
on_build_status_changed: false
test:
assemblies: LiveSplit\LiveSplit.Tests\bin\Release\LiveSplit.Tests.dll
after_build:
- ps: >-
if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master"))
{
$BUILD_NAME = "LiveSplitDevBuild.zip"
mkdir .\LiveSplit\bin\Release\Resources
cp .\LiveSplit\Resources\SplitsFile.ico .\LiveSplit\bin\Release\Resources\
cp .\LiveSplit\Resources\LayoutFile.ico .\LiveSplit\bin\Release\Resources\
cd LiveSplit\bin\Release
Get-ChildItem * -Include *.xml -Recurse | Remove-Item
Get-ChildItem * -Include *.pdb -Recurse | Remove-Item
cd ..\..\..\
7z a $BUILD_NAME .\LiveSplit\bin\Release\*
git clone -q "https://github.com/LiveSplit/LiveSplit.github.io.git"
cd LiveSplit.github.io
git checkout -q artifacts
mv ../$BUILD_NAME . -force
git add $BUILD_NAME
git commit --amend -m "Add Development Build"
git push --force -q origin artifacts
}