forked from ufz/ogs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.appveyor.yml
More file actions
52 lines (41 loc) · 1.51 KB
/
Copy path.appveyor.yml
File metadata and controls
52 lines (41 loc) · 1.51 KB
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
version: 6.0.8.{build}
clone_depth: 100
image:
- Visual Studio 2015
environment:
PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.11"
PYTHON_ARCH: "64"
CONAN_USER_HOME: "C:\\projects\\deps\\conan"
platform:
- x64
configuration:
- Release
cache:
- C:\projects\deps\conan
install:
# All external dependencies are installed in C:\projects\deps
- if not exist "C:\projects\deps\" mkdir C:\projects\deps
# Install conan
- if not exist "C:\projects\deps\conan\" mkdir C:\projects\deps\conan
- set PATH=%PATH%;%PYTHON%/Scripts/
- C:\Python27-x64\Scripts\pip.exe install conan
# Install Ninja
- set NINJA_URL="https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip"
- appveyor DownloadFile %NINJA_URL% -FileName ninja.zip
- 7z x ninja.zip -oC:\projects\deps\ninja > nul
- set PATH=C:\projects\deps\ninja;%PATH%
- ninja --version
before_build:
- call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
- cd %APPVEYOR_BUILD_FOLDER%
- echo %APPVEYOR_BUILD_FOLDER%
build_script:
- mkdir build & cd build
- conan install .. -o gui=True
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_SHARED_LIBS=OFF -DOGS_EIGEN_DYNAMIC_SHAPE_MATRICES=ON -DOGS_USE_PCH=OFF -DOGS_BUILD_GUI=ON
- cmake --build . --config %configuration%
test_script:
- cmake --build . --config %configuration% --target tests
- cmake --build . --config %configuration% --target ctest