-
Notifications
You must be signed in to change notification settings - Fork 7
/
.appveyor.yml
68 lines (58 loc) · 2.22 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
67
68
version: appvayor.{build}
clone_folder: c:\dev\superimpose-mesh-lib
cache:
- 'C:\Tools\vcpkg\installed\'
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CMAKE_GENERATOR: "Visual Studio 14 2015"
VCPKG_TRIPLET_NAME: "x86-windows"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CMAKE_GENERATOR: "Visual Studio 14 2015 Win64"
VCPKG_TRIPLET_NAME: "x64-windows"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "Visual Studio 15 2017"
VCPKG_TRIPLET_NAME: "x86-windows"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
VCPKG_TRIPLET_NAME: "x64-windows"
configuration:
- Release
- Debug
init:
# Print some more system information after installing all build tools
- ps: echo "-------------------- BEGIN SYSTEM INFORMATION --------------------"
- ps: echo CMAKE_GENERATOR=$env:CMAKE_GENERATOR
- ps: echo VCPKG_TRIPLET_NAME=$env:VCPKG_TRIPLET_NAME
- ps: cmake --version
- ps: git config --global core.autocrlf input
- ps: echo CONFIGURATION=$env:CONFIGURATION
- ps: echo "-------------------- END SYSTEM INFORMATION --------------------"
install:
- ps: cd c:\dev
- git clone https://github.com/robotology/ycm.git
- ps: cd ycm
- git checkout v0.10.2
- ps: mkdir build
- ps: cd build
- ps: cmake -Wno-dev -G"$env:CMAKE_GENERATOR" -DCMAKE_INSTALL_PREFIX=c:\dev\install ..
- ps: cmake --build . --target INSTALL --config $env:CONFIGURATION
- ps: $env:YCM_DIR="c:\dev\install\share\YCM\cmake"
- ps: cd c:\dev
- ps: vcpkg install assimp:$env:VCPKG_TRIPLET_NAME
- ps: vcpkg install glfw3:$env:VCPKG_TRIPLET_NAME
- ps: vcpkg install glew:$env:VCPKG_TRIPLET_NAME
- ps: vcpkg install glm:$env:VCPKG_TRIPLET_NAME
- ps: vcpkg install opencv:$env:VCPKG_TRIPLET_NAME
- ps: vcpkg list
build:
build_script:
- ps: cd c:\dev\superimpose-mesh-lib
- ps: mkdir build
- ps: cd build
- ps: cmake -G"$env:CMAKE_GENERATOR" -DCMAKE_TOOLCHAIN_FILE=c:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake -DBUILD_TESTING:BOOL=ON ..
- ps: cmake --build . --target ALL_BUILD --config $env:CONFIGURATION
after_build:
test_script:
- ps: cd c:\dev\superimpose-mesh-lib\build
- ps: ctest -N