2019-12-18 19:48:56 +00:00
|
|
|
dist: bionic
|
2018-12-11 20:36:27 +00:00
|
|
|
sudo: required
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- sudo apt-get -qq update
|
2019-12-18 19:48:56 +00:00
|
|
|
- sudo apt-get install -qq build-essential cmake libfftw3-dev libmbedtls-dev libpcsclite-dev libboost-program-options-dev libconfig++-dev libsctp-dev colordiff ninja-build
|
2018-12-11 20:36:27 +00:00
|
|
|
|
|
|
|
language: cpp
|
2019-12-13 12:52:21 +00:00
|
|
|
|
2019-10-16 23:41:29 +00:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2019-10-10 12:30:01 +00:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-trusty-8
|
|
|
|
- key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
|
|
|
|
packages:
|
|
|
|
- clang-format-8
|
2019-12-13 12:52:21 +00:00
|
|
|
- clang-8
|
2019-10-10 12:30:01 +00:00
|
|
|
|
2018-12-11 20:36:27 +00:00
|
|
|
script:
|
2019-10-10 12:30:01 +00:00
|
|
|
- sudo ln -s /usr/bin/clang-format-diff-8 /usr/bin/clang-format-diff
|
|
|
|
- git remote set-branches --add origin master
|
|
|
|
- git fetch
|
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
|
|
|
|
# Run only for PRs because target branch is needed to do the clang-format check
|
|
|
|
echo "Checking clang-format between TRAVIS_BRANCH=$TRAVIS_BRANCH and TRAVIS_PULL_REQUEST_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH"
|
|
|
|
./run-clang-format-diff.sh "$TRAVIS_BRANCH" "$TRAVIS_PULL_REQUEST_BRANCH"
|
|
|
|
else
|
|
|
|
echo "Skipping clang-format check"
|
|
|
|
fi
|
2018-12-11 20:36:27 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2020-02-24 16:05:00 +00:00
|
|
|
- cmake -DENABLE_5GNR=True -DENABLE_TTCN3=True -DRF_FOUND=True -G Ninja ..
|
2019-12-18 19:48:56 +00:00
|
|
|
- ninja
|
|
|
|
- ninja test
|
|
|
|
- sudo ninja install
|