-
Notifications
You must be signed in to change notification settings - Fork 36
/
.travis.yml
48 lines (41 loc) · 1.64 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
language: cpp
compiler:
- gcc
dist: bionic
cache:
apt: true
branches:
only:
- master
before_install:
- pip install --user cpp-coveralls codecov
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends lcov bzip2 wget make g++ xsdcxx libxerces-c-dev
# Upgrade to a newer version of CMake version to handle oneAPI
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- travis_retry wget --no-check-certificate https://cmake.org/files/v3.20/cmake-3.20.6-linux-x86_64.tar.gz
- tar -xvf cmake-3.20.6-linux-x86_64.tar.gz > /dev/null
- mv cmake-3.20.6-linux-x86_64 cmake-install
- PATH=${DEPS_DIR}/cmake-install:${DEPS_DIR}/cmake-install/bin:$PATH
- cd ${TRAVIS_BUILD_DIR}
# Install boost
- sudo apt-get install -y --no-install-recommends libboost-system-dev libboost-filesystem-dev libboost-timer-dev libboost-thread-dev libboost-program-options-dev
# Install Intel oneAPI
- wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
- sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
- sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
- sudo apt-get update
- sudo apt-get install -y intel-basekit
script:
- chmod +x ./resources/make_dynadjust_gcc.sh
- ./resources/make_dynadjust_gcc.sh --no-install --auto --no-clone --test
after_success:
- cd ./dynadjust/
- coveralls
--gcov /usr/bin/gcov
--exclude-pattern ".*feature_tests.*"
--exclude-pattern ".*CompilerId.*"
--exclude-pattern ".*/resources/.*"
--gcov-options '\-lp' >/dev/null 2>&1
- bash <(curl -s https://codecov.io/bash) >/dev/null 2>&1