2017-08-10 21:11:05 +00:00
|
|
|
language: c
|
2018-10-30 16:30:48 +00:00
|
|
|
sudo: false
|
2018-10-28 15:29:15 +00:00
|
|
|
os: linux
|
2020-07-28 19:05:01 +00:00
|
|
|
dist: focal
|
2020-09-06 21:43:18 +00:00
|
|
|
git:
|
|
|
|
depth: false # disable shallow fetch, history is needed by SonarQube
|
2018-10-28 15:29:15 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2019-08-08 17:57:06 +00:00
|
|
|
update: true
|
2018-10-28 15:29:15 +00:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2020-07-28 19:05:01 +00:00
|
|
|
- llvm-toolchain-focal-7
|
|
|
|
- llvm-toolchain-focal-8
|
|
|
|
- llvm-toolchain-focal-9
|
|
|
|
- llvm-toolchain-focal-10
|
2018-10-28 15:29:15 +00:00
|
|
|
packages:
|
|
|
|
- cmake-data
|
|
|
|
- cmake
|
|
|
|
- libglib2.0-0
|
|
|
|
- libsndfile-dev
|
|
|
|
- libasound2-dev
|
|
|
|
- libjack-dev
|
|
|
|
- portaudio19-dev
|
|
|
|
- libpulse-dev
|
|
|
|
- libdbus-glib-1-dev
|
|
|
|
- ladspa-sdk
|
2019-03-26 14:58:37 +00:00
|
|
|
- libsdl2-dev
|
2017-08-11 09:25:04 +00:00
|
|
|
env:
|
|
|
|
- CMAKE_FLAGS="-Denable-profiling=1"
|
|
|
|
- CMAKE_FLAGS="-Denable-floats=1 -Denable-profiling=1"
|
2020-07-08 17:10:29 +00:00
|
|
|
- CMAKE_FLAGS="-Denable-floats=1"
|
2017-08-11 09:25:04 +00:00
|
|
|
- CMAKE_FLAGS="-Denable-trap-on-fpe=1"
|
|
|
|
- CMAKE_FLAGS="-Denable-fpe-check=1"
|
2018-03-03 19:06:23 +00:00
|
|
|
- CMAKE_FLAGS="-Denable-ipv6=0"
|
|
|
|
- CMAKE_FLAGS="-Denable-network=0"
|
|
|
|
- CMAKE_FLAGS="-Denable-aufile=0"
|
2018-02-22 16:24:24 +00:00
|
|
|
- CMAKE_FLAGS="-DBUILD_SHARED_LIBS=0"
|
2020-02-01 09:55:50 +00:00
|
|
|
- CMAKE_FLAGS="-Denable-ubsan=1"
|
2018-10-28 15:29:15 +00:00
|
|
|
|
2017-08-10 21:11:05 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2020-09-06 21:43:18 +00:00
|
|
|
- addons:
|
|
|
|
sonarcloud:
|
|
|
|
organization: "fluidsynth"
|
|
|
|
env:
|
|
|
|
- BW="build-wrapper-linux-x86-64 --out-dir bw-output"
|
|
|
|
- SONARSC="sonar-scanner -Dsonar.cfamily.build-wrapper-output=build/bw-output"
|
|
|
|
|
2019-10-23 13:20:22 +00:00
|
|
|
- arch: arm64
|
|
|
|
env:
|
2020-07-28 19:05:01 +00:00
|
|
|
- CC="gcc-7"
|
|
|
|
- CXX="g++-7"
|
|
|
|
- MATRIX_EVAL="sudo apt-get install gcc-7 g++-7"
|
2018-05-05 15:48:27 +00:00
|
|
|
|
2020-08-17 16:19:15 +00:00
|
|
|
- dist: trusty
|
|
|
|
env:
|
|
|
|
- CMAKE_FLAGS=""
|
|
|
|
|
2019-06-29 08:56:09 +00:00
|
|
|
- env:
|
2020-07-28 19:05:01 +00:00
|
|
|
- CC="gcc-8"
|
|
|
|
- CXX="g++-8"
|
|
|
|
- MATRIX_EVAL="sudo apt-get install gcc-8 g++-8"
|
2018-10-28 15:29:15 +00:00
|
|
|
- CMAKE_FLAGS="-Denable-debug=1 -DCMAKE_C_FLAGS_DEBUG=-fuse-ld=gold"
|
2017-08-10 21:11:05 +00:00
|
|
|
|
2019-10-23 13:20:22 +00:00
|
|
|
- env:
|
2020-07-28 19:05:01 +00:00
|
|
|
- CC="clang-7"
|
|
|
|
- CXX="clang++-7"
|
|
|
|
- MATRIX_EVAL="sudo apt-get install clang-7"
|
2017-08-10 21:11:05 +00:00
|
|
|
|
2019-10-23 13:20:22 +00:00
|
|
|
- env:
|
2020-07-28 19:05:01 +00:00
|
|
|
- CC="clang-8"
|
|
|
|
- CXX="clang++-8"
|
|
|
|
- MATRIX_EVAL="sudo rm -f /usr/local/clang-7.0.0/bin/clang-tidy && sudo ln -s /usr/bin/clang-tidy-8 /usr/bin/clang-tidy && sudo apt-get install clang-8 clang-tidy-8"
|
2019-08-08 18:38:05 +00:00
|
|
|
- CMAKE_FLAGS="-Denable-profiling=1 -DCMAKE_C_FLAGS_DEBUG=-fuse-ld=gold"
|
2019-08-08 17:59:49 +00:00
|
|
|
|
2020-02-01 09:55:50 +00:00
|
|
|
- env:
|
2020-07-28 19:05:01 +00:00
|
|
|
- CC="clang-9"
|
|
|
|
- CXX="clang++-9"
|
|
|
|
- MATRIX_EVAL="sudo apt-get install clang-9"
|
|
|
|
|
|
|
|
- env:
|
|
|
|
- CC="clang-10"
|
|
|
|
- CXX="clang++-10"
|
|
|
|
- MATRIX_EVAL="sudo apt-get install clang-10"
|
2020-02-01 09:55:50 +00:00
|
|
|
|
2019-10-23 13:20:22 +00:00
|
|
|
- os: linux-ppc64le
|
|
|
|
env:
|
|
|
|
- CMAKE_FLAGS=""
|
|
|
|
|
2017-08-10 21:11:05 +00:00
|
|
|
before_install:
|
2019-10-23 13:20:22 +00:00
|
|
|
- which clang-tidy || true
|
|
|
|
- ls -la `which clang-tidy` || true
|
2019-08-08 18:38:05 +00:00
|
|
|
- echo $PATH
|
2020-07-28 19:05:01 +00:00
|
|
|
- echo $MATRIX_EVAL
|
|
|
|
- eval "${MATRIX_EVAL}"
|
2020-09-06 21:43:18 +00:00
|
|
|
- echo $SONARSC
|
2019-08-08 18:38:05 +00:00
|
|
|
|
2017-08-10 21:11:05 +00:00
|
|
|
before_script:
|
2018-02-22 16:32:16 +00:00
|
|
|
- mkdir $HOME/fluidsynth_install/
|
2017-08-10 21:11:05 +00:00
|
|
|
- mkdir build && cd build
|
2019-08-08 18:38:05 +00:00
|
|
|
|
2017-08-10 21:11:05 +00:00
|
|
|
script:
|
2020-02-02 14:45:44 +00:00
|
|
|
- cmake -Werror=dev -DCMAKE_INSTALL_PREFIX=$HOME/fluidsynth_install ${CMAKE_FLAGS} -Denable-portaudio=1 -Denable-ladspa=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 ..
|
2020-09-06 21:43:18 +00:00
|
|
|
- ${BW} make -j4
|
|
|
|
- ls -la
|
2018-08-05 15:55:07 +00:00
|
|
|
- make check
|
2020-09-06 21:43:18 +00:00
|
|
|
- make install
|
|
|
|
- cd ..
|
|
|
|
- ${SONARSC}
|