1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 11:52:40 +01:00

ci: add debug build

This commit is contained in:
Anonymous Maarten 2018-08-13 20:06:06 +02:00
parent 7eab14bee0
commit fa1ff787e5
4 changed files with 22 additions and 4 deletions

View File

@ -16,7 +16,7 @@ matrix:
script:
- scripts/docker/docker_travis.sh "fedora_latest.docker"
- os: linux
env: NAME="Arch Linux (Latest)" NAME_SUFFIX="arch"
env: NAME="Arch Linux (Latest)" NAME_SUFFIX="arch" DEBUG=1
services: docker
script:
- scripts/docker/docker_travis.sh "arch_latest.docker"

View File

@ -1,5 +1,9 @@
set(CMAKE_GENERATOR "Xcode")
if(ENV{DEBUG})
set(DEBUG "$ENV{DEBUG}")
else()
set(DEBUG FALSE)
endif()
set(CONFIGURE_EXTRA_OPTIONS ";")
set(BUILD_TOOLS TRUE)
set(BUILD_VIEWER TRUE)

View File

@ -1,5 +1,9 @@
set(CMAKE_GENERATOR "Unix Makefiles")
if($ENV{DEBUG})
set(DEBUG "$ENV{DEBUG}")
else()
set(DEBUG FALSE)
endif()
set(CONFIGURE_EXTRA_OPTIONS ";")
set(BUILD_TOOLS TRUE)
set(BUILD_VIEWER TRUE)

View File

@ -8,7 +8,17 @@ docker=$1
"$curdir/docker_tool.py" build -d "$docker" -t openrw_build_image
# Start docker container + add travis user
"$curdir/docker_tool.py" create -t openrw_build_image -n openrw_builder -U travis -e NAME_SUFFIX=$NAME_SUFFIX XDG_RUNTIME_DIR=/tmp TRAVIS=$TRAVIS TRAVIS_COMMIT=$TRAVIS_COMMIT TRAVIS_EVENT_TYPE=$TRAVIS_EVENT_TYPE TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG TRAVIS_BRANCH=$TRAVIS_BRANCH USE_CONAN=$USE_CONAN
"$curdir/docker_tool.py" create -t openrw_build_image -n openrw_builder -U travis \
-e \
NAME_SUFFIX=$NAME_SUFFIX \
TRAVIS=$TRAVIS \
TRAVIS_COMMIT=$TRAVIS_COMMIT \
TRAVIS_EVENT_TYPE=$TRAVIS_EVENT_TYPE \
TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG \
TRAVIS_BRANCH=$TRAVIS_BRANCH \
USE_CONAN=$USE_CONAN \
DEBUG=$DEBUG \
XDG_RUNTIME_DIR=/tmp
# execute test
"$curdir/docker_tool.py" exec -n openrw_builder -U travis -- /bin/bash -c "ctest -VV -S /src/cmake/ctest/script_ci.ctest -VV"