-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (36 loc) · 855 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: cpp
dist: bionic
compiler: gcc
install:
- sudo apt update -qq
# Boost
- sudo apt install libboost-all-dev
# Qt5
- sudo apt-get install -qq libqt5webkit5-dev qtdeclarative5-dev libqt5svg5*
- export QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
# Codecov
- sudo pip install codecov
# OCLint
- ./install_oclint.sh
# Other GitHubs
- ./download_other_githubs.sh
services:
- xvfb
script:
# Build and run console
- qmake -qt=qt5 DotMatrixConsole.pro
- make --silent
- ./DotMatrixConsole -t "Hello world"
# Build and run desktop
- qmake -qt=qt5 DotMatrixDesktop.pro
- make --silent
- ./DotMatrixDesktop &
- sleep 10
- sudo killall -9 DotMatrixDesktop
# Get code coverage
- ./get_code_cov.sh
- codecov
# Call OCLint
- ./do_oclint.sh
after_success:
- bash <(curl -s https://codecov.io/bash)