forked from jam1garner/Smash-Forge
-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
61 lines (52 loc) · 2.35 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
configuration: Release
image:
- Visual Studio 2017
branches:
only:
- master
before_build:
- cmd: cd SFGraphics
# Update SFGraphics to the latest build.
- git checkout master
- git pull
# Restore after in case any projects were changed.
- ps: nuget restore
- cmd: cd ..
build:
verbosity: minimal
build_script:
- msbuild "SFGraphics/SFGraphics.sln"
- copy /Y "%APPVEYOR_BUILD_FOLDER%\SFGraphics\Projects\SFGraphics\bin\Release\SFGraphics.dll" "%APPVEYOR_BUILD_FOLDER%\Smash Forge\lib\"
- copy /Y "%APPVEYOR_BUILD_FOLDER%\SFGraphics\Projects\SFGraphics\bin\Release\SFGraphics.xml" "%APPVEYOR_BUILD_FOLDER%\Smash Forge\lib\"
- msbuild "Smash Forge.sln"
deploy:
tag: LatestCommit
release: Smash Forge [Latest Commit]
description: 'This build is updated every time a commit is pushed to the master branch.\n\nMessage: $(APPVEYOR_REPO_COMMIT_MESSAGE)\n\n Timestamp: $(APPVEYOR_REPO_COMMIT_TIMESTAMP)'
provider: GitHub
auth_token:
secure: z5SnUfSHHue45QInOucUxNY+is9OvW7f/mStLyZ9WfH1IEtoHPfwGHiiYNjwVGwO
artifact: Smash-Forge-Latest_Commit.zip
draft: false
prerelease: true
force_update: true
on:
branch: master
install:
- git submodule update --init --recursive
test:
assemblies:
except:
- 'SFGraphics\Test Projects\SFGraphics.Test\bin\Release\SFGraphics.Test.dll'
- 'SFGraphics\Test Projects\SFGenericModel.Test\bin\Release\SFGenericModel.Test.dll'
after_build:
- 7z a "Smash-Forge-Latest_Commit.zip" "%APPVEYOR_BUILD_FOLDER%\Smash Forge\bin\Release\Smash Forge.exe"
- 7z a "Smash-Forge-Latest_Commit.zip" "%APPVEYOR_BUILD_FOLDER%\Smash Forge\bin\Release\Smash Forge.exe.config"
- 7z a "Smash-Forge-Latest_Commit.zip" "%APPVEYOR_BUILD_FOLDER%\Smash Forge\bin\Release\lib\"
- 7z a "Smash-Forge-Latest_Commit.zip" "%APPVEYOR_BUILD_FOLDER%\Smash Forge\bin\Release\*.csv"
- 7z a "Smash-Forge-Latest_Commit.zip" "%APPVEYOR_BUILD_FOLDER%\Smash Forge\bin\Release\materials"
- 7z a "Smash-Forge-Latest_Commit.zip" "%APPVEYOR_BUILD_FOLDER%\Smash Forge\bin\Release\param_labels"
- 7z a "Smash-Forge-Latest_Commit.zip" "%APPVEYOR_BUILD_FOLDER%\Smash Forge\bin\Release\Shader"
- 7z a "Smash-Forge-Latest_Commit.zip" "%APPVEYOR_BUILD_FOLDER%\Smash Forge\bin\Release\Preview Images"
- 7z a "Smash-Forge-Latest_Commit.zip" "%APPVEYOR_BUILD_FOLDER%\Forge Updater\bin\Release\updater"
- appveyor PushArtifact "Smash-Forge-Latest_Commit.zip"