forked from GilesBathgate/RapCAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
55 lines (49 loc) · 1.61 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "#{build}"
image:
- Visual Studio 2015
cache:
- FlexBison.zip -> appveyor.yml
- CGAL-Setup.exe -> appveyor.yml
- C:\CGAL -> appveyor.yml
install:
- set CGAL_ROOT=C:\CGAL\
- set BOOST_ROOT=C:\Libraries\boost_1_60_0
- set QTDIR=C:\Qt\5.9\mingw53_32
# Install Flex/Bison
- if not exist FlexBison.zip
appveyor DownloadFile https://downloads.sourceforge.net/project/winflexbison/win_flex_bison-latest.zip
-FileName FlexBison.zip
- 7z x -o%QTDIR%\bin FlexBison.zip
# Install CGAL
- if not exist CGAL-Setup.exe
appveyor DownloadFile https://github.com/CGAL/cgal/releases/download/releases/CGAL-4.11/CGAL-4.11-Setup.exe
-FileName CGAL-Setup.exe
- if not exist %CGAL_ROOT%
CGAL-Setup.exe /S /D=c:\CGAL
# Build Boost
- call %QTDIR%\bin\qtenv2.bat
- cd %BOOST_ROOT%
- call bootstrap.bat mingw
- .\b2 toolset=gcc variant=release --with-thread --with-system
# Build CGAL
- set CGAL_ROOT=C:\CGAL\
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- cd %CGAL_ROOT%
- if not exist C:\CGAL\Makefile
cmake -G"MinGW Makefiles" .
- if not exist C:\CGAL\bin\libCGAL.dll
mingw32-make
# Setup environment
- set PATH=%PATH%;%CGAL_ROOT%\bin
- set PATH=%PATH%;%CGAL_ROOT%\auxiliary\gmp\lib
- set PATH=%PATH%;%QTDIR%\bin
- set PATH=C:\Program Files\Git\usr\bin;%PATH%
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- qmake CONFIG+=coverage
- mingw32-make -j4 -f Makefile.Release
- cd release
- windeployqt --release rapcad.exe
test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- release\rapcad.exe -t test