mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
dist: bionic
|
|
sudo: required
|
|
|
|
before_script:
|
|
- sudo apt-get -qq update
|
|
- 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
|
|
|
|
language: cpp
|
|
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- llvm-toolchain-trusty-8
|
|
- key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
|
|
packages:
|
|
- clang-format-8
|
|
- clang-8
|
|
|
|
script:
|
|
- 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
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -DENABLE_5GNR=True -DENABLE_TTCN3=True -DRF_FOUND=True -G Ninja ..
|
|
- ninja
|
|
- ninja test
|
|
- sudo ninja install
|