-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
71 lines (64 loc) · 2.18 KB
/
appveyor.yml
File metadata and controls
71 lines (64 loc) · 2.18 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
platform:
- x64
skip_branch_with_pr: true
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
ID: Windows msvc 2017
GENERATOR: Visual Studio 15 2017 Win64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
ID: Windows msvc 2017 x86
GENERATOR: Visual Studio 15 2017
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
ID: Windows mingw
GENERATOR: MinGW Makefiles
MAKE_PATH: c:\msys64\mingw64\bin
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
ID: Windows mingw x86
GENERATOR: MinGW Makefiles
MAKE_PATH: c:\msys64\mingw32\bin
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
ID: Ubuntu gcc
GENERATOR: Unix Makefiles
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
ID: Ubuntu gcc x86
GENERATOR: Unix Makefiles
COMPILE_FLAGS: -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
ID: Mac clang
GENERATOR: Unix Makefiles
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
ID: Mac gcc
GENERATOR: Unix Makefiles
C_COMPILER: -DCMAKE_C_COMPILER=/usr/bin/gcc
CXX_COMPILER: -DCMAKE_CXX_COMPILER=/usr/bin/g++
install:
- git submodule update --init --recursive
- sh: >-
if [ "$ID" = "Ubuntu gcc x86" ]; then
sudo apt-get update
sudo apt-get install gcc-multilib g++-multilib -y
fi
before_build:
# http://help.appveyor.com/discussions/problems/3193-cmake-building-for-mingw-issue-with-git-shexe
- cmd: set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- cmd: set PATH=%MAKE_PATH%;%PATH%
build_script:
- mkdir build && cd build
- cmd: >-
cmake
-DCMAKE_BUILD_TYPE=RELEASE
-DCMAKE_INSTALL_PREFIX:PATH=%CD%/glug_timer-install
-G"%GENERATOR%" %C_COMPILER% %CXX_COMPILER% %COMPILE_FLAGS%
..
- sh: >-
cmake
-DCMAKE_BUILD_TYPE=RELEASE
-DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/glug_timer-install
-G"$GENERATOR" ${C_COMPILER} ${CXX_COMPILER} ${COMPILE_FLAGS}
..
- cmake --build . --config Release
before_test:
- cmake --build . --target examples check install install-examples --config Release
test_script:
- ctest -V -C Release