This repository has been archived by the owner on Jan 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (72 loc) · 2.36 KB
/
.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
language: cpp
dist: focal
#cache:
# directories:
# - /home/travis/.conan
## FIXME : This the cache generate this error
## opengl/system: Already installed!
## ERROR: opengl/system: Error in package_info() method, line 78
## self._fill_cppinfo_from_pkgconfig('gl')
## while calling '_fill_cppinfo_from_pkgconfig', line 21
## if not pkg_config.provides:
## ConanException: pkg-config command ['pkg-config', '--print-provides', 'gl', '--print-errors'] failed with error: Command 'pkg-config --print-provides gl --print-errors' returned non-zero exit status 1.
matrix:
include:
- name: "Linux (GCC compiler)"
os: linux
compiler: gcc
env: OS=linux COMPILER=gcc GCC_VERSION=10 CODECOV_TOKEN="30f26de8-86d2-4287-82de-3b14d6ee60fb"
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-10
- g++-10
- cmake
- python3
- python3-pip
- python3-setuptools
- lcov
update: true
after_script:
- bash <(curl -s https://codecov.io/bash)
# - name: "Linux (Clang compiler)"
# os: linux
# compiler: clang
# env: OS=linux COMPILER=clang CLANG_VERSION=11
# addons:
# apt:
# sources:
# - sourceline: 'ppa:ubuntu-toolchain-r/test'
# packages:
# - clang-11
# - cmake
# - python3
# - python3-pip
# - python3-setuptools
# - lcov
# update: true
# - name: "MacOS"
# os: osx
# compiler: clang
# env: OS=osx COMPILER=clang
# osx_image: xcode12.2
before_install:
- if [ "$OS" != "osx" ] && [ "$COMPILER" = "gcc" ]; then export CC="gcc-${GCC_VERSION}" CXX="g++-${GCC_VERSION}"; fi
- if [ "$OS" != "osx" ] && [ "$COMPILER" = "clang" ]; then export CC="clang-${CLANG_VERSION}" CXX="clang++-${CLANG_VERSION}"; fi
- if [ "$OS" == "osx" ]; then brew update; fi
- cmake --version
- git config --global user.name "Travis CI"
- git config --global user.email "[email protected]"
- git config --global push.default simple
install:
- ./tools/install.sh
- conan --version
- cmake --version
script:
- ./tools/generate.sh -- -DENABLE_COVERAGE:BOOL=TRUE -DENABLE_TESTING:BOOL=TRUE
- ./tools/build.sh --test
notifications:
email:
on_success: never