Files

48 lines
2.1 KiB
YAML
Raw Permalink Normal View History

2019-04-29 10:30:47 +02:00
version: 1.0.{build}
skip_branch_with_pr: true
2019-09-28 00:41:47 -05:00
image: Visual Studio 2019
2019-04-29 10:30:47 +02:00
environment:
WEBHOOK_URL:
secure: gOKbXaZM9ImtMD5XrYITvdyZUW/az082G9OIN1EC1Vbg57wBaeLhi49uGjxPw5GVujHku6kxN6ab89zhbS5GVeluR76GM83IbKV4Sh7udXzoYZZdg6YudtYHzdhCgUeiedpswbuczTq9ceIkkfSEWZuh/lMAAVVwvcGsJAnoPFw=
2019-05-09 02:10:42 -05:00
build:
parallel: true
2019-04-29 10:30:47 +02:00
build_script:
2020-09-20 22:34:32 -05:00
- pwsh: >-
2020-09-21 05:37:42 -05:00
$ErrorActionPreference = 'Stop'
2020-09-21 05:16:34 -05:00
git clone --depth=1 --no-single-branch https://github.com/ModOrganizer2/modorganizer-umbrella.git c:\projects\modorganizer-umbrella
2020-09-20 19:11:50 -05:00
2020-09-20 22:34:32 -05:00
New-Item -ItemType Directory -Path c:\projects\modorganizer-build
2019-04-29 10:30:47 +02:00
cd c:\projects\modorganizer-umbrella
($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH -eq $null) ? ($branch = $env:APPVEYOR_REPO_BRANCH) : ($branch = $env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH)
2019-04-29 10:30:47 +02:00
git checkout $(git show-ref --verify --quiet refs/remotes/origin/${branch} || echo '-b') ${branch}
2020-09-20 22:34:32 -05:00
2020-09-21 10:42:05 -05:00
C:\Python37-x64\python.exe unimake.py -d c:\projects\modorganizer-build -s Appveyor_Build=True ${env:APPVEYOR_PROJECT_NAME}
if($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode ) }
2019-04-29 10:30:47 +02:00
artifacts:
2019-05-22 01:07:13 -05:00
- path: build\src\proxy\plugin_python.dll
2019-04-29 14:07:19 +02:00
name: plugin_python_dll
2019-05-22 01:07:13 -05:00
- path: build\src\proxy\plugin_python.pdb
2019-04-29 14:07:19 +02:00
name: plugin_python_pdb
2019-05-22 01:07:13 -05:00
- path: build\src\proxy\plugin_python.lib
2019-04-29 14:07:19 +02:00
name: plugin_python_lib
2019-05-22 01:07:13 -05:00
- path: build\src\runner\pythonrunner.dll
2019-04-29 10:30:47 +02:00
name: pythonrunner_dll
2019-05-22 01:07:13 -05:00
- path: build\src\runner\pythonrunner.pdb
2019-04-29 10:30:47 +02:00
name: pythonrunner_pdb
2019-05-22 01:07:13 -05:00
- path: build\src\runner\pythonrunner.lib
2019-04-29 10:30:47 +02:00
name: pythonrunner_lib
on_success:
- ps: Set-Location -Path $env:APPVEYOR_BUILD_FOLDER
- ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 success $env:WEBHOOK_URL
on_failure:
- ps: Set-Location -Path $env:APPVEYOR_BUILD_FOLDER
- ps: Push-AppveyorArtifact ${env:APPVEYOR_BUILD_FOLDER}\stdout.log
- ps: Push-AppveyorArtifact ${env:APPVEYOR_BUILD_FOLDER}\stderr.log
2019-04-29 10:30:47 +02:00
- ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 failure $env:WEBHOOK_URL