-
Notifications
You must be signed in to change notification settings - Fork 2
/
old-travis.yml
62 lines (61 loc) · 1.84 KB
/
old-travis.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
# WARNING: The Travis-CI build config is unmaintained and may not work
# This project needs CMake3.15+, but at the time of writing (2021-03-10),
# Travis-CI provided CMake3.12 on Linux instances.
dist: bionic # this is the most recent Ubuntu image available
language: cpp
cache: ccache
matrix:
include:
- name: Docs only on Linux
os: linux
addons:
apt:
packages:
- doxygen
- graphviz
before_install: skip
before_script: skip
script:
- doxygen Doxyfile
- name: GCC 10 on Linux
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-10
env:
- MATRIX_EVAL="CMAKE_GENERATOR='Unix Makefiles' && CXX=g++-10"
- name: Clang 10 on Linux
os: linux
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-10
env:
- MATRIX_EVAL="CMAKE_GENERATOR='Unix Makefiles' && CXX=clang++-10"
- name: Clang 10 on macOS
os: osx
osx_image: xcode12.2 # this image has Clang >10.0.1 and CMake >3.15
env:
- MATRIX_EVAL="CMAKE_GENERATOR='Unix Makefiles' && CXX=clang++"
- name: MSVC 2019 on Windows
os: windows
env:
- MATRIX_EVAL="CMAKE_GENERATOR='Visual Studio 16 2019'"
before_install:
- eval "${MATRIX_EVAL}"
install:
- if [ $TRAVIS_OS_NAME = 'windows' ]; then choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"; fi
before_script:
- cd build
- cmake -G "$CMAKE_GENERATOR" ..
script:
- cmake --build . -j
- ctest