clang-format below version 8 wants a different formatting and would error on the already existing codebase.
46 lines
1.2 KiB
YAML
46 lines
1.2 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
|
|
|
|
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
|