-
Notifications
You must be signed in to change notification settings - Fork 86
/
.travis.yml
35 lines (31 loc) · 913 Bytes
/
.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
dist: trusty
sudo: required
language: cpp
os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-9
- g++-9
- pkg-config
before_install:
- sudo apt remove --purge cmake
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/build_deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- travis_retry wget --no-check-certificate https://cmake.org/files/v3.19/cmake-3.19.6-Linux-x86_64.tar.gz
- tar -xvf cmake-3.19.6-Linux-x86_64.tar.gz > /dev/null
- mv cmake-3.19.6-Linux-x86_64 cmake-install
- PATH=${DEPS_DIR}/cmake-install:${DEPS_DIR}/cmake-install/bin:$PATH
- cd ${TRAVIS_BUILD_DIR}
script:
- export CODECOV_TOKEN="964ca3de-67f4-4065-a81a-b86c489c1738"
- bash <(curl -s https://codecov.io/bash)
- export CC=gcc-9
- export CXX=g++-9
- gcc -v && g++ -v && cmake --version
- rm -rf build && mkdir build && cd build
- cmake .. && make