-
Notifications
You must be signed in to change notification settings - Fork 133
/
.travis.yml
47 lines (41 loc) · 1.53 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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