/
.travis.yml
43 lines (38 loc) · 889 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
41
42
43
language: cpp
dist: bionic
compiler: gcc
install:
- sudo apt update -qq
# Boost
- sudo apt install -qq libboost-all-dev
# Qt5
- sudo apt-get install -qq libqt5webkit5-dev qtdeclarative5-dev
- export QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
# Codecov
- sudo pip install codecov
# OCLint
- ./install_oclint
# Others
- ./download_other_githubs
services:
- xvfb
script:
# Console test
- qmake -qt=qt5 ReversiConsoleTest.pro
- make --silent debug
- ./ReversiConsoleTest &
# Console
- qmake -qt=qt5 ReversiConsole.pro
- make --silent debug
# - ./ReversiConsole & # Don't
# Desktop test
- qmake -qt=qt5 ReversiDesktop.pro
- make --silent debug
- ./ReversiDesktop &
# Code coverage
- ./get_code_cov > /dev/null
- codecov > /dev/null
# OCLint
- ./do_oclint || true
after_success:
- bash <(curl -s https://codecov.io/bash)