|
1 |
| -version: 1.0.{build} |
2 |
| - |
3 |
| -environment: |
4 |
| - CoverityProjectToken: |
5 |
| - secure: BYP5qnptMazSCwTwgiFHlfqZd7BM3bwTRq2Cbs++ofg= |
6 |
| - CoverityNotificationEmail: |
7 |
| - secure: 0kyu0t8QwQYUQzqguVJP3N+VpEDfET2ArP+JNnOsUELJQvH8qbeQzPTM0ga0ek5G |
8 |
| - |
9 |
| -install: |
10 |
| - |
11 |
| -cache: |
12 |
| - - thirdparty\download -> thirdparty\fetch-thirdparty-deps.ps1 |
13 |
| - |
14 |
| -before_build: |
15 |
| -- make dependencies |
16 |
| - |
17 |
| -build: |
18 |
| - project: OpenRA.sln |
19 |
| - verbosity: minimal |
20 |
| - |
21 |
| -after_build: |
22 |
| -- ps: | |
23 |
| - if ($env:APPVEYOR_SCHEDULED_BUILD -eq "True") |
24 |
| - { |
25 |
| - cov-build.exe --dir cov-int make all |
26 |
| - nuget.exe install PublishCoverity -ExcludeVersion |
27 |
| - PublishCoverity\tools\PublishCoverity.exe compress -o coverity.zip -i cov-int |
28 |
| - $version = Get-Date -format s |
29 |
| - PublishCoverity\tools\PublishCoverity.exe publish ` |
30 |
| - -t "$env:CoverityProjectToken" ` |
31 |
| - -e "$env:CoverityNotificationEmail" ` |
32 |
| - -r "$env:APPVEYOR_REPO_NAME" ` |
33 |
| - -z coverity.zip ` |
34 |
| - -d "AppVeyor scheduled build ($env:APPVEYOR_BUILD_VERSION)." ` |
35 |
| - --codeVersion "$version" |
36 |
| - } |
37 |
| -
|
38 |
| -before_test: |
39 |
| -- ps: | |
40 |
| - if ($env:APPVEYOR_SCHEDULED_BUILD -eq "True") |
41 |
| - { |
42 |
| - choco install resharper-clt -y |
43 |
| - dupFinder /output=dupReport.xml /show-text OpenRA.sln |
44 |
| - choco install xmlstarlet -y |
45 |
| - xml transform dupFinder.xslt dupReport.xml > dupReport.html |
46 |
| - choco install pandoc -y |
47 |
| - } |
48 |
| -
|
49 |
| -test_script: |
50 |
| - - nunit3-console OpenRA.Test.dll --result=myresults.xml;format=AppVeyor |
51 |
| - |
52 |
| -after_test: |
53 |
| - - appveyor DownloadFile "https://raw.githubusercontent.com/wiki/OpenRA/OpenRA/Changelog.md" -FileName Changelog.md |
54 |
| - - make docs |
55 |
| - - ps: dir *.md | % {gc $_ -Raw | .\ConvertFrom-Markdown.ps1 | Out-File -FilePath "$($_.Name.TrimEnd(".md")).html"} |
56 |
| - - ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Red Alert').replace('MOD_ID', 'ra').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs" |
57 |
| - - ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\RedAlert.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\RedAlert.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs |
58 |
| - - ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Tiberian Dawn').replace('MOD_ID', 'cnc').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs" |
59 |
| - - ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\TiberianDawn.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\TiberianDawn.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs |
60 |
| - - ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Dune 2000').replace('MOD_ID', 'd2k').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs" |
61 |
| - - ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\Dune2000.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\Dune2000.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs |
62 |
| - - ps: cp packaging\windows\OpenRA.ico . |
63 |
| - - ps: cp packaging\windows\RedAlert.ico . |
64 |
| - - ps: cp packaging\windows\TiberianDawn.ico . |
65 |
| - - ps: cp packaging\windows\Dune2000.ico . |
66 |
| - - if defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_TAG_NAME% |
67 |
| - - if not defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_COMMIT:~0,7% |
68 |
| - - '"C:\Program Files (x86)\NSIS\makensis.exe" /DSRCDIR="%APPVEYOR_BUILD_FOLDER%" /DDEPSDIR="%APPVEYOR_BUILD_FOLDER%\thirdparty\download\windows" /DTAG="git-%VERSION%" /DSUFFIX=" (dev)" /V3 packaging/windows/OpenRA.nsi' |
69 |
| - - move /Y %APPVEYOR_BUILD_FOLDER%\packaging\windows\OpenRA.Setup.exe %APPVEYOR_BUILD_FOLDER%\OpenRA-%VERSION%.exe |
70 |
| - |
71 |
| -artifacts: |
72 |
| - - path: OpenRA-$(VERSION).exe |
73 |
| - name: Installer |
74 |
| - - path: coverity.zip |
75 |
| - name: Coverity Build |
76 |
| - - path: dupReport.html |
77 |
| - name: dupFinder Report |
| 1 | +version: 1.0.{build} |
| 2 | + |
| 3 | +environment: |
| 4 | + CoverityProjectToken: |
| 5 | + secure: BYP5qnptMazSCwTwgiFHlfqZd7BM3bwTRq2Cbs++ofg= |
| 6 | + CoverityNotificationEmail: |
| 7 | + secure: 0kyu0t8QwQYUQzqguVJP3N+VpEDfET2ArP+JNnOsUELJQvH8qbeQzPTM0ga0ek5G |
| 8 | + |
| 9 | +install: |
| 10 | + |
| 11 | +cache: |
| 12 | + - thirdparty\download -> thirdparty\fetch-thirdparty-deps.ps1 |
| 13 | + |
| 14 | +before_build: |
| 15 | +- make dependencies |
| 16 | + |
| 17 | +build: |
| 18 | + project: OpenRA.sln |
| 19 | + verbosity: minimal |
| 20 | + |
| 21 | +after_build: |
| 22 | +- ps: | |
| 23 | + if ($env:APPVEYOR_SCHEDULED_BUILD -eq "True") |
| 24 | + { |
| 25 | + cov-build.exe --dir cov-int make all |
| 26 | + nuget.exe install PublishCoverity -ExcludeVersion |
| 27 | + PublishCoverity\tools\PublishCoverity.exe compress -o coverity.zip -i cov-int |
| 28 | + $version = Get-Date -format s |
| 29 | + PublishCoverity\tools\PublishCoverity.exe publish ` |
| 30 | + -t "$env:CoverityProjectToken" ` |
| 31 | + -e "$env:CoverityNotificationEmail" ` |
| 32 | + -r "$env:APPVEYOR_REPO_NAME" ` |
| 33 | + -z coverity.zip ` |
| 34 | + -d "AppVeyor scheduled build ($env:APPVEYOR_BUILD_VERSION)." ` |
| 35 | + --codeVersion "$version" |
| 36 | + } |
| 37 | +
|
| 38 | +before_test: |
| 39 | +- ps: | |
| 40 | + if ($env:APPVEYOR_SCHEDULED_BUILD -eq "True") |
| 41 | + { |
| 42 | + choco install resharper-clt -y |
| 43 | + dupFinder /output=dupReport.xml /show-text OpenRA.sln |
| 44 | + choco install xmlstarlet -y |
| 45 | + xml transform dupFinder.xslt dupReport.xml > dupReport.html |
| 46 | + choco install pandoc -y |
| 47 | + } |
| 48 | +
|
| 49 | +test_script: |
| 50 | + - nunit3-console OpenRA.Test.dll --result=myresults.xml;format=AppVeyor |
| 51 | + |
| 52 | +after_test: |
| 53 | + - appveyor DownloadFile "https://raw.githubusercontent.com/wiki/OpenRA/OpenRA/Changelog.md" -FileName Changelog.md |
| 54 | + - make docs |
| 55 | + - ps: dir *.md | % {gc $_ -Raw | .\ConvertFrom-Markdown.ps1 | Out-File -FilePath "$($_.Name.TrimEnd(".md")).html"} |
| 56 | + - ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Red Alert').replace('MOD_ID', 'ra').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs" |
| 57 | + - ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\RedAlert.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\RedAlert.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs |
| 58 | + - ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Tiberian Dawn').replace('MOD_ID', 'cnc').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs" |
| 59 | + - ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\TiberianDawn.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\TiberianDawn.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs |
| 60 | + - ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Dune 2000').replace('MOD_ID', 'd2k').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs" |
| 61 | + - ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\Dune2000.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\Dune2000.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs |
| 62 | + - ps: cp packaging\windows\OpenRA.ico . |
| 63 | + - ps: cp packaging\windows\RedAlert.ico . |
| 64 | + - ps: cp packaging\windows\TiberianDawn.ico . |
| 65 | + - ps: cp packaging\windows\Dune2000.ico . |
| 66 | + - if defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_TAG_NAME% |
| 67 | + - if not defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_COMMIT:~0,7% |
| 68 | + - '"C:\Program Files (x86)\NSIS\makensis.exe" /DSRCDIR="%APPVEYOR_BUILD_FOLDER%" /DDEPSDIR="%APPVEYOR_BUILD_FOLDER%\thirdparty\download\windows" /DTAG="git-%VERSION%" /DSUFFIX=" (dev)" /V3 packaging/windows/OpenRA.nsi' |
| 69 | + - move /Y %APPVEYOR_BUILD_FOLDER%\packaging\windows\OpenRA.Setup.exe %APPVEYOR_BUILD_FOLDER%\OpenRA-%VERSION%.exe |
| 70 | + |
| 71 | +artifacts: |
| 72 | + - path: OpenRA-$(VERSION).exe |
| 73 | + name: Installer |
| 74 | + - path: coverity.zip |
| 75 | + name: Coverity Build |
| 76 | + - path: dupReport.html |
| 77 | + name: dupFinder Report |
0 commit comments