forked from boostorg/gil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
138 lines (126 loc) · 5.12 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# AppVeyor for Boost.GIL
#
# Copyright 2016, 2017 Peter Dimov
# Copyright 2018 Mateusz Loskot <mateusz at loskot dot net>
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
#
version: 1.0.{build}-{branch}
# Current Boost.GIL develop branch (future Boost 1.68) requires C++11
# Since VS2017, MSVC default is /std:c++14, so no explicit switch is required.
image: Visual Studio 2017
platform: x64
shallow_clone: true
environment:
matrix:
- TOOLSET: msvc-14.0
ARCH: x86_64
VARIANT: debug
CXXSTD: 11
TEST_HEADERS: 1
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- TOOLSET: msvc-14.0
ARCH: x86_64
VARIANT: release
CXXSTD: 11
TEST_HEADERS: 1
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- TOOLSET: msvc-14.1
ARCH: x86_64
VARIANT: debug
CXXSTD: 17
TEST_HEADERS: 1
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOOLSET: msvc-14.1
ARCH: x86_64
VARIANT: release
CXXSTD: 17
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOOLSET: msvc-14.1
ARCH: x86_64
VARIANT: debug
CXXSTD: 14
TEST_HEADERS: 1
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOOLSET: msvc-14.1
ARCH: x86_64
VARIANT: release
CXXSTD: 14
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOOLSET: msvc-14.1
ARCH: x86
VARIANT: debug
CXXSTD: 14
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOOLSET: msvc-14.1
ARCH: x86
VARIANT: release
CXXSTD: 14
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOOLSET: msvc-14.1
ARCH: x86_64
VARIANT: debug
CXXSTD: 14
GENERATOR: "Visual Studio 15 2017 Win64"
CMAKE_CONFIG: Debug
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
matrix:
fast_finish: true
allow_failures:
- TOOLSET: msvc-14.1
ARCH: x86_64
VARIANT: release
CXXSTD: 17
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOOLSET: msvc-14.1
ARCH: x86_64
VARIANT: release
CXXSTD: 14
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOOLSET: msvc-14.1
ARCH: x86_64
VARIANT: debug
CXXSTD: 14
GENERATOR: "Visual Studio 15 2017 Win64"
CMAKE_CONFIG: Debug
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
cache:
- c:\tools\vcpkg\installed\
install:
# FIXME: To be removed https://help.appveyor.com/discussions/problems/13000-cmake_toolchain_filevcpkgcmake-conflicts-with-cmake-native-findboostcmake"
- ps: 'Write-Host "Installing latest vcpkg.cmake module" -ForegroundColor Magenta'
- appveyor DownloadFile https://raw.githubusercontent.com/Microsoft/vcpkg/master/scripts/buildsystems/vcpkg.cmake -FileName "c:\tools\vcpkg\scripts\buildsystems\vcpkg.cmake"
- if %ARCH% == x86 ( set "TRIPLET=x86-windows" ) else ( set "TRIPLET=x64-windows" )
- if %ARCH% == x86 ( set AM=32 ) else ( set AM=64 )
- vcpkg --triplet %TRIPLET% install libjpeg-turbo libpng tiff
- if NOT DEFINED GENERATOR set PATH=c:\Tools\vcpkg\installed\%TRIPLET%\bin;%PATH%
- if NOT DEFINED GENERATOR set VCPKG_I=C:\Tools\vcpkg\installed\%TRIPLET%\include
- if NOT DEFINED GENERATOR set VCPKG_L=C:\Tools\vcpkg\installed\%TRIPLET%\lib
- if NOT DEFINED GENERATOR set LIBPNG_NAME=libpng16
- set BOOST_BRANCH=develop
- if "%APPVEYOR_REPO_BRANCH%" == "master" set BOOST_BRANCH=master
before_build:
- cd ..
- bash -c '$APPVEYOR_BUILD_FOLDER/.ci/get-boost.sh $APPVEYOR_REPO_BRANCH $APPVEYOR_BUILD_FOLDER'
- cd boost-root
- cmd /c bootstrap
- .\b2 headers > NUL
- if DEFINED GENERATOR .\b2 address-model=%AM% toolset=%TOOLSET% variant=%VARIANT% cxxstd=%CXXSTD% --with-filesystem --with-test stage
build: off
build_script:
- if NOT DEFINED GENERATOR b2 --abbreviate-paths address-model=%AM% toolset=%TOOLSET% variant=%VARIANT% cxxstd=%CXXSTD% libs/gil/test/core
- if NOT DEFINED GENERATOR b2 --abbreviate-paths address-model=%AM% toolset=%TOOLSET% variant=%VARIANT% cxxstd=%CXXSTD% libs/gil/test/legacy
- if NOT DEFINED GENERATOR b2 --abbreviate-paths address-model=%AM% toolset=%TOOLSET% variant=%VARIANT% cxxstd=%CXXSTD% libs/gil/test/extension/numeric
- if NOT DEFINED GENERATOR b2 --abbreviate-paths address-model=%AM% toolset=%TOOLSET% variant=%VARIANT% cxxstd=%CXXSTD% libs/gil/test/extension/toolbox
- if NOT DEFINED GENERATOR b2 --abbreviate-paths address-model=%AM% toolset=%TOOLSET% variant=%VARIANT% cxxstd=%CXXSTD% include=%VCPKG_I% library-path=%VCPKG_L% libs/gil/test/extension/io//simple
- if DEFINED GENERATOR cd libs\gil && md build && cd build
- if DEFINED GENERATOR cmake -G "%GENERATOR%" -DCMAKE_CXX_STANDARD=%CXXSTD% -DBoost_DETAILED_FAILURE_MSG=ON -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
- if DEFINED GENERATOR cmake --build . --config %CMAKE_CONFIG %
test_script:
- if DEFINED GENERATOR ctest -V --output-on-failure -C %VARIANT%
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/e9e4892cdeb7cbff2e5a
on_build_success: false
on_build_failure: true
on_build_status_changed: true