-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
26 lines (22 loc) · 868 Bytes
/
.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
os: linux
dist: bionic
language: cpp
compiler: gcc
sudo: required
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt-5.14.1-bionic -y
- sudo apt update
- sudo apt install libglu1-mesa-dev libgl1-mesa-dev qt514base qt514websockets qt514multimedia python-pip cppcheck -y
- pip install cpplint
install:
- source /opt/qt5*/bin/qt5*-env.sh
- /opt/qt5*/bin/qmake PREFIX=/usr || cmake CMakeLists.txt
script:
- make
- rm ./qrc_* || true
- rm ./moc* || true
- rm ./ui* || true
- rm -rf ./CMakeFiles ./box2d ./src/box2d || true
- cppcheck --enable=unusedFunction --language=c++ $(find -name "*.h" -o -name "*.cpp")
- cppcheck --enable=warning,performance --language=c++ $(find -name "*.h" -o -name "*.cpp")
- cpplint --filter=-legal/copyright,-build/include_subdir,-build/c++11,-build/include_order $(find -name "*.h" -o -name "*.cpp")