mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 02:12:45 +01:00
ci: add debug build
This commit is contained in:
parent
7eab14bee0
commit
fa1ff787e5
@ -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"
|
||||
|
@ -1,5 +1,9 @@
|
||||
set(CMAKE_GENERATOR "Xcode")
|
||||
set(DEBUG FALSE)
|
||||
if(ENV{DEBUG})
|
||||
set(DEBUG "$ENV{DEBUG}")
|
||||
else()
|
||||
set(DEBUG FALSE)
|
||||
endif()
|
||||
set(CONFIGURE_EXTRA_OPTIONS ";")
|
||||
set(BUILD_TOOLS TRUE)
|
||||
set(BUILD_VIEWER TRUE)
|
||||
|
@ -1,5 +1,9 @@
|
||||
set(CMAKE_GENERATOR "Unix Makefiles")
|
||||
set(DEBUG FALSE)
|
||||
if($ENV{DEBUG})
|
||||
set(DEBUG "$ENV{DEBUG}")
|
||||
else()
|
||||
set(DEBUG FALSE)
|
||||
endif()
|
||||
set(CONFIGURE_EXTRA_OPTIONS ";")
|
||||
set(BUILD_TOOLS TRUE)
|
||||
set(BUILD_VIEWER TRUE)
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user