2016-09-14 11:54:25 -07:00
|
|
|
#---------------------------------#
|
|
|
|
# general configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
version: 0.8-build-{build}
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# environment configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
2017-03-22 10:57:36 -07:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
SFML_ROOT: C:\SFML-VS2017
|
2016-09-14 11:54:25 -07:00
|
|
|
SFML_VERSION: master
|
2017-03-22 10:39:47 -07:00
|
|
|
GENERATOR: Visual Studio 15 2017 Win64
|
2016-09-14 11:54:25 -07:00
|
|
|
BUILD_TYPE: Debug
|
|
|
|
SHARED_LIBS: FALSE
|
|
|
|
BUILD_TESTS: TRUE
|
|
|
|
BUILD_EXAMPLES: FALSE
|
2017-03-22 10:39:47 -07:00
|
|
|
BUILD_FOLDER: build-VS2017-Win64
|
2016-09-14 11:54:25 -07:00
|
|
|
|
2017-07-10 07:23:51 -07:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
SFML_ROOT: C:\SFML-VS2015
|
2017-07-10 14:50:25 -07:00
|
|
|
SFML_VERSION: 2.4.0
|
2017-07-10 07:23:51 -07:00
|
|
|
GENERATOR: Visual Studio 14 2015
|
2016-09-14 11:54:25 -07:00
|
|
|
BUILD_TYPE: Release
|
|
|
|
SHARED_LIBS: TRUE
|
|
|
|
BUILD_TESTS: FALSE
|
|
|
|
BUILD_EXAMPLES: TRUE
|
2017-07-10 07:23:51 -07:00
|
|
|
BUILD_FOLDER: build-VS2015-Win32
|
2016-09-14 11:54:25 -07:00
|
|
|
|
2017-03-22 10:57:36 -07:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
SFML_ROOT: C:\SFML
|
2017-02-11 09:45:34 -08:00
|
|
|
SFML_VERSION: 2.4.2
|
2017-02-08 06:56:53 -08:00
|
|
|
|
2016-09-14 11:54:25 -07:00
|
|
|
clone_depth: 3
|
|
|
|
|
2017-02-08 06:56:53 -08:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
2016-09-14 11:54:25 -07:00
|
|
|
cache:
|
2017-07-28 16:03:47 -07:00
|
|
|
- C:\SFML-VS2017 -> .appveyor.yml
|
2017-07-10 07:23:51 -07:00
|
|
|
- C:\SFML-VS2015 -> .appveyor.yml
|
2017-02-08 06:56:53 -08:00
|
|
|
- C:\SFML -> .appveyor.yml
|
2016-09-14 11:54:25 -07:00
|
|
|
|
|
|
|
install:
|
2017-02-06 10:13:51 -08:00
|
|
|
- IF "%SFML_VERSION%" == "master" (
|
|
|
|
git clone --depth 1 https://github.com/SFML/SFML &&
|
|
|
|
cd SFML &&
|
2017-07-28 16:03:47 -07:00
|
|
|
IF EXIST "%SFML_ROOT%\lib" (
|
|
|
|
IF EXIST "%SFML_ROOT%\revision_cache" (
|
|
|
|
git rev-parse HEAD > revision &&
|
2017-08-28 15:27:30 -07:00
|
|
|
fc revision "%SFML_ROOT%\revision_cache" > nul || (exit 0) &&
|
2017-07-28 16:03:47 -07:00
|
|
|
IF %ERRORLEVEL% EQU 0 (
|
|
|
|
echo Using cached SFML directory
|
2017-09-25 16:06:21 -07:00
|
|
|
) ELSE (
|
2017-07-28 16:03:47 -07:00
|
|
|
echo Rebuilding SFML, cached version is out of date &&
|
|
|
|
cmake -G "%GENERATOR%" -DCMAKE_INSTALL_PREFIX=%SFML_ROOT% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DBUILD_SHARED_LIBS=%SHARED_LIBS% . &&
|
|
|
|
cmake --build . --target install --config %BUILD_TYPE% -- /m &&
|
|
|
|
git rev-parse HEAD > "%SFML_ROOT%\revision_cache"
|
|
|
|
)
|
2017-09-25 16:06:21 -07:00
|
|
|
) ELSE (
|
2017-07-28 16:03:47 -07:00
|
|
|
echo Rebuilding SFML, cached version is missing revision_cache file &&
|
|
|
|
cmake -G "%GENERATOR%" -DCMAKE_INSTALL_PREFIX=%SFML_ROOT% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DBUILD_SHARED_LIBS=%SHARED_LIBS% . &&
|
|
|
|
cmake --build . --target install --config %BUILD_TYPE% -- /m &&
|
|
|
|
git rev-parse HEAD > "%SFML_ROOT%\revision_cache"
|
|
|
|
)
|
2017-09-25 16:06:21 -07:00
|
|
|
) ELSE (
|
2017-07-28 16:03:47 -07:00
|
|
|
echo Rebuilding SFML, no cache available &&
|
|
|
|
cmake -G "%GENERATOR%" -DCMAKE_INSTALL_PREFIX=%SFML_ROOT% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DBUILD_SHARED_LIBS=%SHARED_LIBS% . &&
|
|
|
|
cmake --build . --target install --config %BUILD_TYPE% -- /m &&
|
|
|
|
git rev-parse HEAD > "%SFML_ROOT%\revision_cache"
|
|
|
|
)
|
2017-09-25 16:06:21 -07:00
|
|
|
) ELSE IF NOT "%SFML_ROOT%" == "C:\SFML" (
|
2017-02-06 10:13:51 -08:00
|
|
|
IF NOT EXIST %SFML_ROOT% (
|
|
|
|
appveyor DownloadFile https://github.com/SFML/SFML/archive/%SFML_VERSION%.zip -FileName SFML.zip &&
|
|
|
|
7z x SFML.zip > nul &&
|
|
|
|
move SFML-%SFML_VERSION% %SFML_ROOT% > nul &&
|
2016-09-14 11:54:25 -07:00
|
|
|
cd %SFML_ROOT% &&
|
|
|
|
mkdir lib &&
|
2017-02-06 10:13:51 -08:00
|
|
|
cmake -G "%GENERATOR%" -DCMAKE_INSTALL_PREFIX=%SFML_ROOT% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DBUILD_SHARED_LIBS=%SHARED_LIBS% . &&
|
|
|
|
cmake --build . --target install --config %BUILD_TYPE% -- /m
|
2016-09-14 11:54:25 -07:00
|
|
|
)
|
2017-09-25 16:06:21 -07:00
|
|
|
) ELSE IF "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" IF /I "%APPVEYOR_REPO_TAG%"=="false" (
|
2017-02-08 06:56:53 -08:00
|
|
|
cd C:\ &&
|
2017-02-11 17:17:23 -08:00
|
|
|
appveyor-retry choco install doxygen.portable &&
|
2017-02-08 07:20:56 -08:00
|
|
|
IF NOT EXIST %SFML_ROOT% (
|
|
|
|
appveyor DownloadFile http://www.sfml-dev.org/files/SFML-%SFML_VERSION%-windows-vc14-32-bit.zip -FileName SFML-Win32.zip &&
|
|
|
|
7z x SFML-Win32.zip > nul &&
|
|
|
|
mkdir %SFML_ROOT%\Win32 &&
|
|
|
|
move SFML-%SFML_VERSION% %SFML_ROOT%\Win32\ > nul &&
|
|
|
|
appveyor DownloadFile http://www.sfml-dev.org/files/SFML-%SFML_VERSION%-windows-vc14-64-bit.zip -FileName SFML-Win64.zip &&
|
|
|
|
7z x SFML-Win64.zip > nul &&
|
|
|
|
mkdir %SFML_ROOT%\Win64 &&
|
|
|
|
move SFML-%SFML_VERSION% %SFML_ROOT%\Win64\ > nul
|
2017-02-11 17:17:23 -08:00
|
|
|
)
|
2017-02-08 06:56:53 -08:00
|
|
|
)
|
2016-09-14 11:54:25 -07:00
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# build configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- cd C:\projects\tgui
|
2017-02-08 06:56:53 -08:00
|
|
|
- IF NOT "%SFML_ROOT%" == "C:\SFML" (
|
|
|
|
mkdir %BUILD_FOLDER% &&
|
|
|
|
cd %BUILD_FOLDER% &&
|
|
|
|
cmake -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DTGUI_SHARED_LIBS=%SHARED_LIBS% -DTGUI_BUILD_TESTS=%BUILD_TESTS% -DTGUI_BUILD_EXAMPLES=%BUILD_EXAMPLES% -DSFML_ROOT=%SFML_ROOT% .. &&
|
|
|
|
msbuild tgui.sln /p:Configuration=%BUILD_TYPE% /m &&
|
|
|
|
cd .. &&
|
|
|
|
IF "%BUILD_TESTS%"=="TRUE" (
|
|
|
|
cd %BUILD_FOLDER%\tests\%BUILD_TYPE% &&
|
|
|
|
tests.exe
|
|
|
|
)
|
2017-09-25 16:06:21 -07:00
|
|
|
) ELSE IF "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" IF /I "%APPVEYOR_REPO_TAG%"=="false" (
|
2017-02-08 06:56:53 -08:00
|
|
|
cd .. &&
|
|
|
|
mkdir build-Win32 &&
|
|
|
|
cd build-Win32 &&
|
2017-09-25 16:06:21 -07:00
|
|
|
cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=Release -DTGUI_SHARED_LIBS=FALSE -DSFML_ROOT=%SFML_ROOT%\Win32\SFML-%SFML_VERSION% -DTGUI_BUILD_GUI_BUILDER=TRUE ..\tgui &&
|
2017-02-08 06:56:53 -08:00
|
|
|
msbuild tgui.sln /p:Configuration=Release /m &&
|
|
|
|
cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=Debug -DTGUI_SHARED_LIBS=FALSE -DSFML_ROOT=%SFML_ROOT%\Win32\SFML-%SFML_VERSION% ..\tgui &&
|
|
|
|
msbuild tgui.sln /p:Configuration=Debug /m &&
|
|
|
|
cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=Release -DTGUI_SHARED_LIBS=TRUE -DSFML_ROOT=%SFML_ROOT%\Win32\SFML-%SFML_VERSION% ..\tgui &&
|
|
|
|
msbuild tgui.sln /p:Configuration=Release /m &&
|
|
|
|
cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=Debug -DTGUI_SHARED_LIBS=TRUE -DSFML_ROOT=%SFML_ROOT%\Win32\SFML-%SFML_VERSION% -DTGUI_BUILD_DOC=TRUE ..\tgui &&
|
|
|
|
msbuild tgui.sln /p:Configuration=Debug /m &&
|
|
|
|
mkdir ..\tgui\lib &&
|
|
|
|
move lib\Release\tgui-s.lib ..\tgui\lib\ > nul &&
|
|
|
|
move lib\Debug\tgui-s-d.lib ..\tgui\lib\ > nul &&
|
|
|
|
move lib\Release\tgui.lib ..\tgui\lib\ > nul &&
|
|
|
|
move lib\Release\tgui.dll ..\tgui\lib\ > nul &&
|
|
|
|
move lib\Debug\tgui-d.lib ..\tgui\lib\ > nul &&
|
|
|
|
move lib\Debug\tgui-d.dll ..\tgui\lib\ > nul &&
|
|
|
|
move doc\html ..\tgui\doc\ > nul &&
|
2017-09-25 16:06:21 -07:00
|
|
|
move gui-builder\Release\gui-builder.exe ..\tgui\gui-builder\ > nul &&
|
2017-02-08 06:56:53 -08:00
|
|
|
cd .. &&
|
|
|
|
echo d | xcopy /s tgui TGUI-0.8-dev > nul &&
|
2017-02-15 09:38:22 -08:00
|
|
|
7z a -tzip TGUI-0.8-dev-vc14-32bit-for-SFML-%SFML_VERSION%.zip TGUI-0.8-dev > nul &&
|
|
|
|
appveyor PushArtifact TGUI-0.8-dev-vc14-32bit-for-SFML-%SFML_VERSION%.zip &&
|
2017-02-08 06:56:53 -08:00
|
|
|
rmdir /S /Q TGUI-0.8-dev > nul &&
|
|
|
|
rmdir /S /Q tgui\doc\html > nul &&
|
|
|
|
rmdir /S /Q tgui\lib > nul &&
|
|
|
|
mkdir build-Win64 &&
|
|
|
|
cd build-Win64 &&
|
2017-09-25 16:06:21 -07:00
|
|
|
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release -DTGUI_SHARED_LIBS=FALSE -DSFML_ROOT=%SFML_ROOT%\Win64\SFML-%SFML_VERSION% -DTGUI_BUILD_GUI_BUILDER=TRUE ..\tgui &&
|
2017-02-08 06:56:53 -08:00
|
|
|
msbuild tgui.sln /p:Configuration=Release /m &&
|
|
|
|
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Debug -DTGUI_SHARED_LIBS=FALSE -DSFML_ROOT=%SFML_ROOT%\Win64\SFML-%SFML_VERSION% ..\tgui &&
|
|
|
|
msbuild tgui.sln /p:Configuration=Debug /m &&
|
|
|
|
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release -DTGUI_SHARED_LIBS=TRUE -DSFML_ROOT=%SFML_ROOT%\Win64\SFML-%SFML_VERSION% ..\tgui &&
|
|
|
|
msbuild tgui.sln /p:Configuration=Release /m &&
|
|
|
|
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Debug -DTGUI_SHARED_LIBS=TRUE -DSFML_ROOT=%SFML_ROOT%\Win64\SFML-%SFML_VERSION% -DTGUI_BUILD_DOC=TRUE ..\tgui &&
|
|
|
|
msbuild tgui.sln /p:Configuration=Debug /m &&
|
|
|
|
mkdir ..\tgui\lib &&
|
|
|
|
move lib\Release\tgui-s.lib ..\tgui\lib\ > nul &&
|
|
|
|
move lib\Debug\tgui-s-d.lib ..\tgui\lib\ > nul &&
|
|
|
|
move lib\Release\tgui.lib ..\tgui\lib\ > nul &&
|
|
|
|
move lib\Release\tgui.dll ..\tgui\lib\ > nul &&
|
|
|
|
move lib\Debug\tgui-d.lib ..\tgui\lib\ > nul &&
|
|
|
|
move lib\Debug\tgui-d.dll ..\tgui\lib\ > nul &&
|
|
|
|
move doc\html ..\tgui\doc\ > nul &&
|
2017-09-25 16:06:21 -07:00
|
|
|
move gui-builder\Release\gui-builder.exe ..\tgui\gui-builder\ > nul &&
|
2017-02-08 06:56:53 -08:00
|
|
|
cd .. &&
|
|
|
|
echo d | xcopy /s tgui TGUI-0.8-dev > nul &&
|
2017-02-15 09:38:22 -08:00
|
|
|
7z a -tzip TGUI-0.8-dev-vc14-64bit-for-SFML-%SFML_VERSION%.zip TGUI-0.8-dev > nul &&
|
|
|
|
appveyor PushArtifact TGUI-0.8-dev-vc14-64bit-for-SFML-%SFML_VERSION%.zip
|
2016-09-14 11:54:25 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2017-02-08 06:56:53 -08:00
|
|
|
#---------------------------------#
|
|
|
|
# deployment configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: BinTray
|
|
|
|
username: texus
|
|
|
|
api_key:
|
|
|
|
secure: cSfvMUOUzComX+zv+OqpWsi4NUTZFdH/xq9hbfrqjPMyL6XFdo/Tg41IpleXdIFu
|
|
|
|
subject: texus
|
|
|
|
repo: generic
|
|
|
|
package: TGUI
|
|
|
|
version: 0.8-dev-latest
|
|
|
|
publish: true
|
|
|
|
override: true
|
|
|
|
explode: false
|
|
|
|
|
|
|
|
|
2016-09-14 11:54:25 -07:00
|
|
|
#---------------------------------#
|
|
|
|
# notifications #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
- provider: Webhook
|
|
|
|
url: https://webhooks.gitter.im/e/1feed1f155b2a41e6a62
|
|
|
|
on_build_success: false
|
|
|
|
on_build_failure: true
|
|
|
|
on_build_status_changed: true
|