TGUI/.appveyor.yml

201 lines
8.2 KiB
YAML
Raw Normal View History

2016-09-14 11:54:25 -07:00
#---------------------------------#
# general configuration #
#---------------------------------#
version: 0.8-build-{build}
#---------------------------------#
# environment configuration #
#---------------------------------#
environment:
matrix:
- SFML_ROOT: C:\SFML-VS2015
SFML_VERSION: master
GENERATOR: Visual Studio 14 2015 Win64
BUILD_TYPE: Debug
SHARED_LIBS: FALSE
BUILD_TESTS: TRUE
BUILD_EXAMPLES: FALSE
BUILD_FOLDER: build-VS2015-Win64
- SFML_ROOT: C:\SFML-VS2013
SFML_VERSION: 2.4.0
GENERATOR: Visual Studio 12 2013
BUILD_TYPE: Release
SHARED_LIBS: TRUE
BUILD_TESTS: FALSE
BUILD_EXAMPLES: TRUE
BUILD_FOLDER: build-VS2013-Win32
- SFML_ROOT: C:\SFML
2017-02-11 09:45:34 -08:00
SFML_VERSION: 2.4.2
2016-09-14 11:54:25 -07:00
clone_depth: 3
matrix:
fast_finish: true
2016-09-14 11:54:25 -07:00
cache:
- C:\SFML-VS2013 -> .appveyor.yml
- C:\SFML-VS2015 -> .appveyor.yml
- C:\SFML -> .appveyor.yml
2016-09-14 11:54:25 -07:00
install:
- IF "%SFML_VERSION%" == "master" (
git clone --depth 1 https://github.com/SFML/SFML &&
cd SFML &&
2017-02-09 16:51:41 -08:00
IF EXIST "%SFML_ROOT%\lib" (
IF EXIST "%SFML_ROOT%\revision_cache" (
git rev-parse HEAD > revision &&
fc revision "%SFML_ROOT%\revision_cache" > nul &&
IF errorlevel 0 (
echo Using cached SFML directory
)
else (
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"
)
)
else (
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"
)
)
else (
2017-02-09 16:51:41 -08: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"
)
)
ELSE IF NOT "%SFML_ROOT%" == "C:\SFML" (
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 &&
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
)
)
ELSE IF "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" IF /I "%APPVEYOR_REPO_TAG%"=="false" (
cd C:\ &&
2017-02-11 17:17:23 -08:00
appveyor-retry choco install doxygen.portable &&
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
)
)
2016-09-14 11:54:25 -07:00
#---------------------------------#
# build configuration #
#---------------------------------#
build_script:
- cd C:\projects\tgui
- 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
)
)
ELSE IF "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" IF /I "%APPVEYOR_REPO_TAG%"=="false" (
cd .. &&
mkdir build-Win32 &&
cd build-Win32 &&
cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=Release -DTGUI_SHARED_LIBS=FALSE -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=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 &&
cd .. &&
echo d | xcopy /s tgui TGUI-0.8-dev > nul &&
7z a -tzip TGUI-0.8-dev-%APPVEYOR_REPO_COMMIT:~0,7%-vc14-32bit-for-SFML-%SFML_VERSION%.zip TGUI-0.8-dev > nul &&
appveyor PushArtifact TGUI-0.8-dev-%APPVEYOR_REPO_COMMIT:~0,7%-vc14-32bit-for-SFML-%SFML_VERSION%.zip &&
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 &&
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release -DTGUI_SHARED_LIBS=FALSE -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=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 &&
cd .. &&
echo d | xcopy /s tgui TGUI-0.8-dev > nul &&
7z a -tzip TGUI-0.8-dev-%APPVEYOR_REPO_COMMIT:~0,7%-vc14-64bit-for-SFML-%SFML_VERSION%.zip TGUI-0.8-dev > nul &&
appveyor PushArtifact TGUI-0.8-dev-%APPVEYOR_REPO_COMMIT:~0,7%-vc14-64bit-for-SFML-%SFML_VERSION%.zip
2016-09-14 11:54:25 -07: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