Merge pull request #23 from ModOrganizer2/Appveyor

Support Appveyor.
This commit is contained in:
Brian Munro
2019-04-29 14:18:19 +02:00
committed by GitHub
3 changed files with 39 additions and 3 deletions
+36
View File
@@ -0,0 +1,36 @@
version: 1.0.{build}
skip_branch_with_pr: true
image: Visual Studio 2017
environment:
WEBHOOK_URL:
secure: gOKbXaZM9ImtMD5XrYITvdyZUW/az082G9OIN1EC1Vbg57wBaeLhi49uGjxPw5GVujHku6kxN6ab89zhbS5GVeluR76GM83IbKV4Sh7udXzoYZZdg6YudtYHzdhCgUeiedpswbuczTq9ceIkkfSEWZuh/lMAAVVwvcGsJAnoPFw=
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
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\proxy\RelWithDebInfo\plugin_python.dll
name: plugin_python_dll
- path: vsbuild\src\proxy\RelWithDebInfo\plugin_python.pdb
name: plugin_python_pdb
- path: vsbuild\src\proxy\RelWithDebInfo\plugin_python.lib
name: plugin_python_lib
- path: vsbuild\src\runner\RelWithDebInfo\pythonrunner.dll
name: pythonrunner_dll
- path: vsbuild\src\runner\RelWithDebInfo\pythonrunner.pdb
name: pythonrunner_pdb
- path: vsbuild\src\runner\RelWithDebInfo\pythonrunner.lib
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: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 failure $env:WEBHOOK_URL
+2 -2
View File
@@ -25,7 +25,7 @@ IF (Boost_FOUND)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
ENDIF (Boost_FOUND)
SET(default_project_path "${CMAKE_SOURCE_DIR}/../..")
SET(default_project_path "${DEPENDENCIES_DIR}/modorganizer_super")
GET_FILENAME_COMPONENT(${default_project_path} ${default_project_path} REALPATH)
SET(project_path "${default_project_path}" CACHE PATH "path to the other mo projects")
@@ -34,7 +34,7 @@ SET(lib_path "${project_path}/../../install/libs")
ADD_DEFINITIONS(-DUNICODE -D_UNICODE)
INCLUDE_DIRECTORIES(${project_path}/uibase/src
${project_path}/plugin_python/src/runner/
${CMAKE_SOURCE_DIR}/src/runner/
${PYTHON_ROOT}/Include)
LINK_DIRECTORIES(${lib_path})
+1 -1
View File
@@ -29,7 +29,7 @@ IF (Boost_FOUND)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
ENDIF (Boost_FOUND)
SET(default_project_path "${CMAKE_SOURCE_DIR}/..")
SET(default_project_path "${DEPENDENCIES_DIR}/modorganizer_super")
GET_FILENAME_COMPONENT(${default_project_path} ${default_project_path} REALPATH)
SET(project_path "${default_project_path}" CACHE PATH "path to the other mo projects")