forked from niftools/nifskope
-
Notifications
You must be signed in to change notification settings - Fork 52
/
.travis.yml
43 lines (39 loc) · 1.26 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
dist: trusty
sudo: required
language: cpp
os:
- linux
- osx
addons:
apt:
sources:
- sourceline: 'ppa:beineri/opt-qt571-trusty'
packages: [
# static analysis
clang-3.6,
# qt5 requirement
qt57-meta-minimal
]
matrix:
fast_finish: true
include:
- os: linux
env:
ANALYZE="scan-build-3.6 --use-cc clang-3.6 --use-c++ clang++-3.6 "
compiler: clang
allow_failures:
- env: ANALYZE="scan-build-3.6 --use-cc clang-3.6 --use-c++ clang++-3.6 "
before_install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo apt-get update -qq; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then QT_ENV_SCRIPT=$(find /opt -name 'qt*-env.sh'); source $QT_ENV_SCRIPT; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update; brew install [email protected]; export PATH="/usr/local/opt/[email protected]/bin:$PATH"; fi
install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo apt-get install -qq g++-6; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90; fi
script:
- qmake --version
- qmake -makefile NifSkope.pro
- ${ANALYZE}make -j4
notifications:
email: false