Travis clang does not have the LLVMgold plugin installed. Disabling LTO is easier than installing the plugin since the CI doesn't create any artifacts anyway.
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
language: cpp
|
|
dist: bionic
|
|
|
|
branches:
|
|
except:
|
|
- /docs-*/
|
|
- /do-not-run-ci-*/
|
|
- /only-appveyor-ci-*/
|
|
- /only-circle-ci-*/
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
env:
|
|
- QMAKE_SPEC=linux-g++
|
|
- QT_SELECT="opt-qt512"
|
|
compiler: gcc
|
|
|
|
- os: linux
|
|
env:
|
|
- USE_TIDY=TRUE
|
|
- QT_SELECT="opt-qt512"
|
|
compiler: clang
|
|
|
|
before_install:
|
|
- chmod +x ./build_scripts/linux/build_linux.sh
|
|
- chmod +x ./build_scripts/linux/format.sh
|
|
- chmod +x ./build_scripts/linux/run-clang-tidy.sh
|
|
- chmod +x ./build_scripts/linux/verify_formatting.sh
|
|
- sudo apt update -qq
|
|
- sudo apt install clang-format-8
|
|
- clang-format-8 --version
|
|
- python ./build_scripts/run-clang-format.py ./src -r --color always --clang-format-executable clang-format-8
|
|
- sed -i 's/QMAKE_CXXFLAGS += -flto//g' ./build_scripts/qt/compilers/clang-gcc-common-switches.pri # CI version of clang can't handle LTO
|
|
- sed -i 's/QMAKE_LFLAGS += -flto -fuse-ld=gold//g' ./build_scripts/qt/compilers/clang-gcc-common-switches.pri # CI version of clang can't handle LTO
|
|
|
|
install:
|
|
- sudo add-apt-repository ppa:beineri/opt-qt-5.12.7-bionic -y
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install gcc clang build-essential libgl1-mesa-dev
|
|
- sudo apt-get install qt512-meta-minimal qt512multimedia qt512declarative qt512quickcontrols2 qt512tools qt512base
|
|
- sudo apt-get install libx11-dev libxt-dev libxtst-dev libpulse-dev
|
|
- sudo apt-get install bear clang-tidy
|
|
- qtchooser -install opt-qt512 /opt/qt512/bin/qmake
|
|
|
|
script:
|
|
- ./build_scripts/linux/build_linux.sh
|