Merge pull request #4371 from assimp/kimkulling-remove_travis
Delete .travis.shkimkulling-lwo-enum-validation_issue4236
commit
ecfb9757d0
67
.travis.sh
67
.travis.sh
|
@ -1,67 +0,0 @@
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
#Open Asset Import Library (assimp)
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Copyright (c) 2006-2020, assimp team
|
|
||||||
#
|
|
||||||
# License see LICENSE file
|
|
||||||
#
|
|
||||||
function generate() {
|
|
||||||
OPTIONS="-DASSIMP_WERROR=ON"
|
|
||||||
OPTIONS="$OPTIONS -DASSIMP_NO_EXPORT=NO"
|
|
||||||
|
|
||||||
if [ "$DISABLE_EXPORTERS" = "YES" ] ; then
|
|
||||||
OPTIONS="$OPTIONS -DASSIMP_NO_EXPORT=YES"
|
|
||||||
else
|
|
||||||
OPTIONS="$OPTIONS -DASSIMP_NO_EXPORT=NO"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$SHARED_BUILD" = "ON" ] ; then
|
|
||||||
OPTIONS="$OPTIONS -DBUILD_SHARED_LIBS=ON"
|
|
||||||
else
|
|
||||||
OPTIONS="$OPTIONS -DBUILD_SHARED_LIBS=OFF"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$ENABLE_COVERALLS" = "ON" ] ; then
|
|
||||||
OPTIONS="$OPTIONS -DASSIMP_COVERALLS=ON"
|
|
||||||
else
|
|
||||||
OPTIONS="$OPTIONS -DASSIMP_COVERALLS=OFF"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$ASAN" = "ON" ] ; then
|
|
||||||
OPTIONS="$OPTIONS -DASSIMP_ASAN=ON"
|
|
||||||
else
|
|
||||||
OPTIONS="$OPTIONS -DASSIMP_ASAN=OFF"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$UBSAN" = "ON" ] ; then
|
|
||||||
OPTIONS="$OPTIONS -DASSIMP_UBSAN=ON"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cmake -G "Unix Makefiles" $OPTIONS
|
|
||||||
}
|
|
||||||
# build and run unittests, if not android
|
|
||||||
if [ $ANDROID ]; then
|
|
||||||
ant -v -Dmy.dir=${TRAVIS_BUILD_DIR} -f ${TRAVIS_BUILD_DIR}/port/jassimp/build.xml ndk-jni
|
|
||||||
fi
|
|
||||||
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
||||||
if [ $ANALYZE = "ON" ] ; then
|
|
||||||
if [ "$CC" = "clang" ]; then
|
|
||||||
scan-build cmake -G "Unix Makefiles" -DBUILD_SHARED_LIBS=OFF -DASSIMP_BUILD_TESTS=OFF
|
|
||||||
scan-build --status-bugs make -j2
|
|
||||||
else
|
|
||||||
cppcheck --version
|
|
||||||
generate \
|
|
||||||
&& cppcheck --error-exitcode=1 -j2 -Iinclude -Icode code 2> cppcheck.txt
|
|
||||||
if [ -s cppcheck.txt ]; then
|
|
||||||
cat cppcheck.txt
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
generate \
|
|
||||||
&& make -j4 \
|
|
||||||
&& sudo make install \
|
|
||||||
&& sudo ldconfig \
|
|
||||||
&& (cd test/unit; ../../bin/unit)
|
|
||||||
fi
|
|
||||||
fi
|
|
78
.travis.yml
78
.travis.yml
|
@ -1,78 +0,0 @@
|
||||||
sudo: required
|
|
||||||
language: cpp
|
|
||||||
|
|
||||||
cache: ccache
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq && sudo apt-get install cmake cppcheck && sudo apt-get install cmake python3 && sudo apt-get install -qq freeglut3-dev libxmu-dev libxi-dev ; echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- ; fi
|
|
||||||
- 'if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
||||||
if brew ls --versions cmake > /dev/null; then
|
|
||||||
echo cmake already installed.;
|
|
||||||
else
|
|
||||||
brew install cmake;
|
|
||||||
fi;
|
|
||||||
brew install python3;
|
|
||||||
brew install homebrew/x11/freeglut;
|
|
||||||
fi'
|
|
||||||
- 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
|
|
||||||
# install latest LCOV (1.9 was failing)
|
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then 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 ; fi
|
|
||||||
|
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
|
|
||||||
compiler:
|
|
||||||
- gcc
|
|
||||||
- clang
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- secure: "lZ7pHQvl5dpZWzBQAaIMf0wqrvtcZ4wiZKeIZjf83TEsflW8+z0uTpIuN30ZV6Glth/Sq1OhLnTP5+N57fZU/1ebA5twHdvP4bS5CIUUg71/CXQZNl36xeaqvxsG/xRrdpKOsPdjAOsQ9KPTQulsX43XDLS7CasMiLvYOpqKcPc="
|
|
||||||
- PV=r8e PLATF=linux-x86_64 NDK_HOME=${TRAVIS_BUILD_DIR}/android-ndk-${PV} PATH=${PATH}:${NDK_HOME}
|
|
||||||
|
|
||||||
git:
|
|
||||||
depth: 1
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- os: linux
|
|
||||||
compiler: clang
|
|
||||||
env: ASAN=ON
|
|
||||||
- os: linux
|
|
||||||
compiler: clang
|
|
||||||
env: UBSAN=ON
|
|
||||||
- os: linux
|
|
||||||
compiler: clang
|
|
||||||
env: SHARED_BUILD=ON
|
|
||||||
- os: linux
|
|
||||||
compiler: gcc
|
|
||||||
env: ANALYZE=ON
|
|
||||||
- os: linux
|
|
||||||
compiler: gcc
|
|
||||||
env: ENABLE_COVERALLS=ON
|
|
||||||
- os: linux
|
|
||||||
compiler: gcc
|
|
||||||
env: SHARED_BUILD=ON
|
|
||||||
|
|
||||||
install:
|
|
||||||
- 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
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
cmake . -DASSIMP_ENABLE_BOOST_WORKAROUND=YES
|
|
||||||
|
|
||||||
script:
|
|
||||||
- export COVERALLS_SERVICE_NAME=travis-ci
|
|
||||||
- export COVERALLS_REPO_TOKEN=abc12345
|
|
||||||
- . ./.travis.sh
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd ${TRAVIS_BUILD_DIR} && lcov --directory . --capture --output-file coverage.info && lcov --remove coverage.info '/usr/*' 'contrib/*' 'test/*' --output-file coverage.info && lcov --list coverage.info && coveralls-lcov --source-encoding=ISO-8859-1 --repo-token=${COVERALLS_TOKEN} coverage.info ; fi
|
|
||||||
|
|
||||||
addons:
|
|
||||||
coverity_scan:
|
|
||||||
project:
|
|
||||||
name: "assimp/assimp"
|
|
||||||
notification_email: kim.kulling@googlemail.com
|
|
||||||
build_command_prepend: "cmake ./"
|
|
||||||
build_command: "make -j4"
|
|
||||||
branch_pattern: coverity_scan
|
|
Loading…
Reference in New Issue