From fa9427d22a7828be393e7e2d9d3e7f658b50666d Mon Sep 17 00:00:00 2001 From: LePresidente Date: Mon, 18 Feb 2019 13:50:48 +0200 Subject: Added appveyor build badge to readme.md Added appveyor.yml which will control the appveyor build in the future (currently extremely basic) --- appveyor.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 appveyor.yml (limited to 'appveyor.yml') diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..48511ced --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,8 @@ +version: 1.0.{build} +image: Visual Studio 2017 +build_script: +- cmd: >- + git clone --depth=1 --branch=Appveyor https://github.com/ModOrganizer2/modorganizer-umbrella.git c:\projects\modorganizer-umbrella 2> $null + mkdir c:\projects\modorganizer-build -type directory + cd c:\projects\modorganizer-umbrella + C:\Python37-x64\python.exe unimake.py -d c:\projects\modorganizer-build -s Appveyor_Build=True %APPVEYOR_PROJECT_NAME% -- cgit v1.3.1 From 24ef8c56d272ce6d28135a4848d1abfb7c532072 Mon Sep 17 00:00:00 2001 From: LePresidente Date: Mon, 18 Feb 2019 14:30:26 +0200 Subject: Added blank lines between commands, due to appveyor sees it as a single command --- appveyor.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'appveyor.yml') diff --git a/appveyor.yml b/appveyor.yml index 48511ced..fa0ca81d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,6 +3,9 @@ image: Visual Studio 2017 build_script: - cmd: >- git clone --depth=1 --branch=Appveyor https://github.com/ModOrganizer2/modorganizer-umbrella.git c:\projects\modorganizer-umbrella 2> $null + mkdir c:\projects\modorganizer-build -type directory + cd c:\projects\modorganizer-umbrella + C:\Python37-x64\python.exe unimake.py -d c:\projects\modorganizer-build -s Appveyor_Build=True %APPVEYOR_PROJECT_NAME% -- cgit v1.3.1 From 63134bc94accd9d7bd66cb1654228fe6c5e3ed47 Mon Sep 17 00:00:00 2001 From: LePresidente Date: Mon, 18 Feb 2019 16:24:03 +0200 Subject: Use same branch on umbrella as the project. --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'appveyor.yml') diff --git a/appveyor.yml b/appveyor.yml index fa0ca81d..c3299a99 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,7 +2,7 @@ version: 1.0.{build} image: Visual Studio 2017 build_script: - cmd: >- - git clone --depth=1 --branch=Appveyor https://github.com/ModOrganizer2/modorganizer-umbrella.git c:\projects\modorganizer-umbrella 2> $null + git clone --depth=1 --branch=%APPVEYOR_REPO_BRANCH% https://github.com/ModOrganizer2/modorganizer-umbrella.git c:\projects\modorganizer-umbrella 2> $null mkdir c:\projects\modorganizer-build -type directory -- cgit v1.3.1 From f0f672f9b7ff01def3b56cb63ce14480ca30e971 Mon Sep 17 00:00:00 2001 From: LePresidente Date: Mon, 18 Feb 2019 16:27:45 +0200 Subject: appveyor really wants those blank lines between commands. --- appveyor.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'appveyor.yml') diff --git a/appveyor.yml b/appveyor.yml index c3299a99..88530f52 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,6 +2,7 @@ version: 1.0.{build} image: Visual Studio 2017 build_script: - cmd: >- + git clone --depth=1 --branch=%APPVEYOR_REPO_BRANCH% https://github.com/ModOrganizer2/modorganizer-umbrella.git c:\projects\modorganizer-umbrella 2> $null mkdir c:\projects\modorganizer-build -type directory -- cgit v1.3.1 From 1a123d2dfa5ba8a0da2c4411b0212a2acad4d2bf Mon Sep 17 00:00:00 2001 From: LePresidente Date: Tue, 19 Feb 2019 16:21:17 +0200 Subject: Updated AppVeyor build to include artifacts, to allow testers to grab new exe's as they are built --- appveyor.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'appveyor.yml') diff --git a/appveyor.yml b/appveyor.yml index 88530f52..6d1d48a7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,8 +1,11 @@ version: 1.0.{build} +skip_branch_with_pr: true image: Visual Studio 2017 +environment: + WEBHOOK_URL: + secure: gOKbXaZM9ImtMD5XrYITvdyZUW/az082G9OIN1EC1VYoNNsKROB4s6VsQiL6qbLNLc4XQhc8Y9DhdU9Hfh49vhypcjUEQmMsENxnp+1hYMJctTqIYDunVSd767eez5wz6rKHqk+XOHmg5gyVNCV9u4DVcCZJSVe4UTKn1lc47H0= build_script: - cmd: >- - git clone --depth=1 --branch=%APPVEYOR_REPO_BRANCH% https://github.com/ModOrganizer2/modorganizer-umbrella.git c:\projects\modorganizer-umbrella 2> $null mkdir c:\projects\modorganizer-build -type directory @@ -10,3 +13,14 @@ build_script: cd c:\projects\modorganizer-umbrella C:\Python37-x64\python.exe unimake.py -d c:\projects\modorganizer-build -s Appveyor_Build=True %APPVEYOR_PROJECT_NAME% +artifacts: +- path: vsbuild\src\RelWithDebInfo\ModOrganizer.exe + name: modorganizer_exe +- path: vsbuild\src\RelWithDebInfo\ModOrganizer.pdb + name: modorganizer_pdb +on_success: + - 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: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1 + - ps: ./send.ps1 failure $env:WEBHOOK_URL \ No newline at end of file -- cgit v1.3.1 From b62dff5fd6bf39e866d137d5ca5e625bf087b5af Mon Sep 17 00:00:00 2001 From: LePresidente Date: Wed, 20 Feb 2019 09:24:50 +0200 Subject: [Appveyor] make sure we are in the appveyor build folder before sending the discord notification, to avoid errors --- appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'appveyor.yml') diff --git a/appveyor.yml b/appveyor.yml index 6d1d48a7..2992614d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -19,8 +19,10 @@ artifacts: - path: vsbuild\src\RelWithDebInfo\ModOrganizer.pdb name: modorganizer_pdb 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: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1 - ps: ./send.ps1 failure $env:WEBHOOK_URL \ No newline at end of file -- cgit v1.3.1