forked from ricardoquesada/vchar64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (39 loc) · 1.51 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
sudo: required
services:
- docker
matrix:
include:
- os: linux
compiler: gcc
env: PPA=beineri/opt-qt571-trusty QT=57
dist: trusty
- os: linux
compiler: clang
env: QMAKESPEC=linux-clang PPA=beineri/opt-qt571-trusty QT=57
dist: trusty
- os: osx
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:$PPA ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qy ; fi
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/versions ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt5 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link qt5 --force ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qy qt${QT}base qt${QT}tools cppcheck; fi
- qmake -version
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source /opt/qt${QT}/bin/qt${QT}-env.sh; fi
script:
- qmake
- make
after_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cppcheck --enable=all -q -Isrc/ `git ls-files src/\*.cpp` ; fi
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/cf558929fabd79e35091
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always