-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
67 lines (55 loc) · 2.18 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
56
57
58
59
60
61
62
63
64
65
66
version: 6.0.8.{build}
clone_depth: 100
image:
- Visual Studio 2017
environment:
PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.11"
PYTHON_ARCH: "64"
CONAN_USER_HOME: "C:\\projects\\deps\\conan"
OMP_NUM_THREADS: "1"
platform:
- x64
configuration:
- Release
cache:
- C:\projects\deps\conan -> scripts/cmake/ConanSetup.cmake
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=%PYTHON%/Scripts/;%PATH%
- pip.exe install conan --upgrade
# 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
clone_script:
- ps: >-
if(-not $env:appveyor_pull_request_number) {
$env:GIT_LFS_SKIP_SMUDGE = 1
git clone -q --branch=$env:appveyor_repo_branch https://github.com/$env:appveyor_repo_name $env:appveyor_build_folder
git checkout -qf $env:appveyor_repo_commit
git lfs pull
} else {
$env:GIT_LFS_SKIP_SMUDGE = 1
git clone -q https://github.com/$env:appveyor_repo_name $env:appveyor_build_folder
git fetch -q origin +refs/pull/$env:appveyor_pull_request_number/merge:
git checkout -qf FETCH_HEAD
git lfs pull
}
before_build:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd" -arch=x64
- cd %APPVEYOR_BUILD_FOLDER%
- echo %APPVEYOR_BUILD_FOLDER%
build_script:
- mkdir build & cd build
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_SHARED_LIBS=OFF -DOGS_EIGEN_DYNAMIC_SHAPE_MATRICES=ON -DOGS_USE_PCH=OFF -DOGS_USE_CONAN=ON -DOGS_CONAN_BUILD=never # -DOGS_BUILD_GUI=ON
- cmake --build . --config %configuration%
- cmake --build . --config %configuration% --target tests
- cmake --build . --config %configuration% --target ctest
# - cmake . -DOGS_BUILD_GUI=ON
# - cmake --build . --config %configuration% --target DataExplorer