2013-04-08 15:45:39 +00:00
|
|
|
before_install:
|
2015-03-31 20:55:07 +00:00
|
|
|
- sudo apt-get update -qq
|
2014-09-07 23:52:03 +00:00
|
|
|
- sudo apt-get install cmake python3
|
2015-03-31 20:55:07 +00:00
|
|
|
- if [ $LINUX ]; then sudo apt-get install -qq freeglut3-dev libxmu-dev libxi-dev ; fi
|
2015-03-20 21:36:57 +00:00
|
|
|
- echo -e "#ifndef A_R_H_INC\n#define A_R_H_INC\n#define GitVersion ${TRAVIS_JOB_ID}\n#define GitBranch \"${TRAVIS_BRANCH}\"\n#endif // A_R_H_INC" > revision.h
|
2016-11-16 10:39:44 +00:00
|
|
|
# install latest LCOV (1.9 was failing)
|
|
|
|
- cd ${TRAVIS_BUILD_DIR}
|
|
|
|
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
|
|
|
|
- tar xf lcov_1.11.orig.tar.gz
|
|
|
|
- sudo make -C lcov-1.11/ install
|
|
|
|
- gem install coveralls-lcov
|
|
|
|
- lcov --version
|
|
|
|
- g++ --version
|
2013-04-08 15:45:39 +00:00
|
|
|
|
2015-03-20 21:36:57 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2015-03-16 22:20:00 +00:00
|
|
|
|
2013-04-18 22:37:41 +00:00
|
|
|
env:
|
2015-03-20 20:05:25 +00:00
|
|
|
global:
|
|
|
|
- PV=r8e PLATF=linux-x86_64 NDK_HOME=${TRAVIS_BUILD_DIR}/android-ndk-${PV} PATH=${PATH}:${NDK_HOME}
|
|
|
|
matrix:
|
2016-11-17 09:06:50 +00:00
|
|
|
- LINUX=1 TRAVIS_NO_EXPORT=YES ENABLE_COVERALLS=ON
|
|
|
|
- LINUX=1 TRAVIS_NO_EXPORT=NO ENABLE_COVERALLS=OFF
|
|
|
|
- LINUX=1 SHARED_BUILD=ON ENABLE_COVERALLS=OFF
|
|
|
|
- LINUX=1 SHARED_BUILD=OFF ENABLE_COVERALLS=OFF
|
2015-03-20 20:05:25 +00:00
|
|
|
- ANDROID=1
|
2013-04-08 15:45:39 +00:00
|
|
|
|
|
|
|
language: cpp
|
2016-05-23 13:12:29 +00:00
|
|
|
|
2013-04-08 15:45:39 +00:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2013-04-18 22:37:41 +00:00
|
|
|
|
2014-12-23 17:36:39 +00:00
|
|
|
install:
|
2015-03-20 20:05:25 +00:00
|
|
|
- if [ $ANDROID ]; then wget -c http://dl.google.com/android/ndk/android-ndk-${PV}-${PLATF}.tar.bz2 && tar xf android-ndk-${PV}-${PLATF}.tar.bz2 ; fi
|
2014-12-23 17:36:39 +00:00
|
|
|
|
2016-11-16 10:39:44 +00:00
|
|
|
before_script:
|
|
|
|
- cd ${TRAVIS_BUILD_DIR}
|
|
|
|
# init coverage to 0 (optional)
|
|
|
|
- lcov --directory . --zerocounters
|
|
|
|
|
2014-08-17 22:34:45 +00:00
|
|
|
script:
|
2016-11-16 15:11:30 +00:00
|
|
|
- export COVERALLS_SERVICE_NAME=travis-ci
|
|
|
|
- export COVERALLS_REPO_TOKEN=abc12345
|
2015-06-30 04:35:31 +00:00
|
|
|
- . ./.travis.sh
|
2016-11-16 10:39:44 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- cd ${TRAVIS_BUILD_DIR}
|
2016-11-17 09:23:57 +00:00
|
|
|
- lcov --directory . --capture --output-file coverage.info
|
2016-11-17 18:11:28 +00:00
|
|
|
- lcov --remove coverage.info '/usr/*' 'contrib/*' 'test/*' --output-file coverage.info
|
2016-11-16 10:39:44 +00:00
|
|
|
- lcov --list coverage.info
|
|
|
|
- coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info
|
|
|
|
|