Travis add debug config

This commit is contained in:
mayeut 2015-09-12 16:11:56 +02:00
parent 82c238f504
commit 41730e8cc6
2 changed files with 11 additions and 3 deletions

View File

@ -8,6 +8,8 @@ compiler:
env:
- OPJ_CI_ARCH=x86_64
- OPJ_CI_ARCH=i386
- OPJ_CI_BUILD_CONFIGURATION=Release
- OPJ_CI_BUILD_CONFIGURATION=Debug
matrix:
exclude:
@ -15,6 +17,10 @@ matrix:
compiler: gcc
- compiler: clang
env: OPJ_CI_ARCH=i386
- compiler: gcc
env: OPJ_CI_BUILD_CONFIGURATION=Debug
- os: osx
env: OPJ_CI_BUILD_CONFIGURATION=Debug
addons:
apt:

View File

@ -8,7 +8,9 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o pipefail ## Fail on error in pipe
# Set-up some variables
OPJ_BUILD_CONFIGURATION=Release
if [ "${OPJ_CI_BUILD_CONFIGURATION:-}" == "" ]; then
export OPJ_CI_BUILD_CONFIGURATION=Release #default
fi
OPJ_SOURCE_DIR=$(cd $(dirname $0)/../.. && pwd)
if [ "${OPJ_DO_SUBMIT:-}" == "" ]; then
@ -79,7 +81,7 @@ OPJ_BUILDNAME=${OPJ_OS_NAME}-${OPJ_CC_VERSION}-${OPJ_CI_ARCH}-${TRAVIS_BRANCH}
if [ "${TRAVIS_PULL_REQUEST:-}" != "false" ] && [ "${TRAVIS_PULL_REQUEST:-}" != "" ]; then
OPJ_BUILDNAME=${OPJ_BUILDNAME}-pr${TRAVIS_PULL_REQUEST}
fi
OPJ_BUILDNAME=${OPJ_BUILDNAME}-${OPJ_BUILD_CONFIGURATION}-3rdP
OPJ_BUILDNAME=${OPJ_BUILDNAME}-${OPJ_CI_BUILD_CONFIGURATION}-3rdP
if [ "${OPJ_NONCOMMERCIAL:-}" == "1" ] && [ "${OPJ_CI_SKIP_TESTS:-}" != "1" ] && [ -d kdu ]; then
echo "
@ -99,7 +101,7 @@ cmake --version
export OPJ_SITE=${OPJ_SITE}
export OPJ_BUILDNAME=${OPJ_BUILDNAME}
export OPJ_SOURCE_DIR=${OPJ_SOURCE_DIR}
export OPJ_BUILD_CONFIGURATION=${OPJ_BUILD_CONFIGURATION}
export OPJ_BUILD_CONFIGURATION=${OPJ_CI_BUILD_CONFIGURATION}
export OPJ_DO_SUBMIT=${OPJ_DO_SUBMIT}
ctest -S ${OPJ_SOURCE_DIR}/tools/ctest_scripts/travis-ci.cmake -V