dust3d/appveyor.yml

92 lines
3.6 KiB
YAML
Raw Normal View History

2018-04-14 02:36:20 +00:00
os: Visual Studio 2015
environment:
matrix:
2018-04-14 06:14:49 +00:00
#- platform: x64
# target: x86_64-pc-windows-msvc
# qtdir: C:\Qt\5.10.1\msvc2015_64
# sysdirname: SysWOW64
2018-04-14 02:36:20 +00:00
- platform: x86
target: i686-pc-windows-msvc
qtdir: C:\Qt\5.10.1\msvc2015
2018-04-14 02:39:37 +00:00
sysdirname: system32
2018-04-14 02:36:20 +00:00
cache:
2018-04-14 03:22:38 +00:00
CGAL-4.11.1-Setup.exe -> appveyor.yml
2018-04-14 02:36:20 +00:00
install:
2018-04-14 05:21:18 +00:00
- if "%PLATFORM%" == "x86"
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
- if "%PLATFORM%" == "x64"
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if "%PLATFORM%" == "x64"
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
2018-04-14 05:39:26 +00:00
- if not exist CGAL-4.11.1-Setup.exe
2018-04-14 03:22:38 +00:00
appveyor DownloadFile https://github.com/CGAL/cgal/releases/download/releases/CGAL-4.11.1/CGAL-4.11.1-Setup.exe -FileName CGAL-4.11.1-Setup.exe
- CGAL-4.11.1-Setup.exe /S /D=%APPVEYOR_BUILD_FOLDER%\CGAL-4.11.1
2018-04-14 02:36:20 +00:00
- cd CGAL-4.11.1
- mkdir build
- cd build
2018-04-14 05:39:26 +00:00
- if "%PLATFORM%" == "x86"
cmake -G "Visual Studio 14 2015" ../ -DBOOST_INCLUDEDIR=C:\Libraries\boost_1_66_0
- if "%PLATFORM%" == "x64"
cmake -G "Visual Studio 14 2015 Win64" ../ -DBOOST_INCLUDEDIR=C:\Libraries\boost_1_66_0
2018-04-14 02:36:20 +00:00
- msbuild /p:Configuration=Release ALL_BUILD.vcxproj
2018-04-14 03:43:30 +00:00
- cd %APPVEYOR_BUILD_FOLDER%
2018-04-14 02:36:20 +00:00
build: false
test_script:
- set PATH=%PATH%;%QTDIR%\bin
2018-04-14 04:16:29 +00:00
- qmake "BOOST_INCLUDEDIR=C:\Libraries\boost_1_66_0" "CGAL_DIR=%APPVEYOR_BUILD_FOLDER%\CGAL-4.11.1"
2018-04-14 02:36:20 +00:00
- nmake -f Makefile.Release
2018-04-14 02:36:20 +00:00
after_test:
# Check deps by Dependency Walker
# Check Qt plugins by following https://wiki.qt.io/Deploy_an_Application_on_Windows
2018-12-01 03:44:25 +00:00
- set TAG=%APPVEYOR_REPO_TAG_NAME%
- if "%TAG%" == ""
set TAG=unstable
- 7z a dust3d-%TAG%-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\release\dust3d.exe
- 7z a dust3d-%TAG%-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\thirdparty\meshlite\meshlite_unstable_vc14_%PLATFORM%\meshlite_ffi.dll
- 7z a dust3d-%TAG%-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\CGAL-4.11.1\build\bin\Release\CGAL-vc140-mt-4.11.1.dll
- 7z a dust3d-%TAG%-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\CGAL-4.11.1\auxiliary\gmp\lib\libgmp-10.dll
- 7z a dust3d-%TAG%-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\CGAL-4.11.1\auxiliary\gmp\lib\libmpfr-4.dll
- 7z a dust3d-%TAG%-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\ci\opengl32sw.dll
- 7z a dust3d-%TAG%-%PLATFORM%.zip %QTDIR%\bin\Qt5Widgets.dll
- 7z a dust3d-%TAG%-%PLATFORM%.zip %QTDIR%\bin\Qt5Gui.dll
- 7z a dust3d-%TAG%-%PLATFORM%.zip %QTDIR%\bin\Qt5Core.dll
- 7z a dust3d-%TAG%-%PLATFORM%.zip "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\%PLATFORM%\Microsoft.VC140.CRT\msvcp140.dll"
- 7z a dust3d-%TAG%-%PLATFORM%.zip "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\%PLATFORM%\Microsoft.VC140.CRT\vcruntime140.dll"
2018-04-14 02:36:20 +00:00
- mkdir platforms
- copy %QTDIR%\plugins\platforms\qwindows.dll %APPVEYOR_BUILD_FOLDER%\platforms\qwindows.dll
2018-12-01 03:44:25 +00:00
- 7z a dust3d-%TAG%-%PLATFORM%.zip -r %APPVEYOR_BUILD_FOLDER%\platforms\
2018-04-14 02:36:20 +00:00
artifacts:
- path: '*.zip'
name: platform_zips
2018-04-14 02:36:20 +00:00
deploy:
2018-12-01 05:26:17 +00:00
- provider: GitHub
release: $(TAG)
force_update: true
auth_token:
secure: Rhzhefjk89WN2tDht8vVKYAojGfR23LhDPKPxhQwbT7k3qswSWjmoFoDTpIHNfc0
artifact: platform_zips
draft: false
prerelease: false
on:
branch: master
- provider: GitHub
release: $(TAG)
force_update: true
auth_token:
secure: Rhzhefjk89WN2tDht8vVKYAojGfR23LhDPKPxhQwbT7k3qswSWjmoFoDTpIHNfc0
artifact: platform_zips
draft: false
prerelease: false
on:
APPVEYOR_REPO_TAG: true