forked from LiveSplit/LiveSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
70 lines (49 loc) · 1.98 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
61
62
63
64
65
66
67
68
69
70
version: 1.6.2-{build}-{branch}
os: Visual Studio 2015
configuration: Release
environment:
BUILD_PASSWORD:
secure: imgAD76elcfLPYX6Wf4y5g==
before_build:
- git config user.email "[email protected]"
- git config user.name "user"
- 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
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\*
# Download winscp
Invoke-WebRequest "http://livesplit.org/winscp577.zip" -OutFile "winscp577.zip"
7z e -y winscp577.zip
# Upload to server
.\WinSCP.com /command `
"option batch abort" `
"option confirm off" `
"open ftp://[email protected]:${env:BUILD_PASSWORD}@livesplit.org -hostkey=*" `
"put $BUILD_NAME /" `
"exit"
}