-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (44 loc) · 1.51 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
language: cpp
os: linux
dist: bionic
sudo: required
addons:
apt:
sources: [ ubuntu-toolchain-r-test ]
packages: [ gcc-10, g++-10, curl, gettext ]
install:
# setup g++ 8
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 90
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-10 90
# install cmake
- CMAKE_VERSION="3.18"
- CMAKE_FULL="${CMAKE_VERSION}.3"
- pushd ~
- curl "https://cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_FULL}-Linux-x86_64.tar.gz" -o "cmake-${CMAKE_FULL}-Linux-x86_64.tar.gz"
- tar xf "cmake-${CMAKE_FULL}-Linux-x86_64.tar.gz"
- export PATH="${PWD}/cmake-${CMAKE_FULL}-Linux-x86_64/bin:${PATH}"
- popd
- pyenv global 3.8
- python -m pip install -U conan
- export PATH=$PATH:`python -c "import site; import os; print(':'.join([os.path.abspath(os.path.join(dir, '..', '..', '..', 'bin')) for dir in site.getsitepackages()]))"`
- conan user
- conan profile new default --detect
- conan profile update settings.compiler.libcxx=libstdc++11 default
before_script:
# verify installed versions
- which cmake
- cmake --version
- which g++
- g++ --version
- which gcov
- gcov --version
- which curl
- curl --version
script:
- mkdir build
- cd build
- conan install .. --build missing -s build_type=Debug
- cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DDIAGS_COVERALLS:BOOL=ON -DDIAGS_COVERALLS_UPLOAD:BOOL=ON ..
- make -j`nproc`
- make coveralls