Travis: Only create release builds

This commit is contained in:
Clownacy 2020-02-05 20:59:08 +00:00
parent 6bbe0c977f
commit 4737a7cbca

View file

@ -48,35 +48,22 @@ addons:
update: true update: true
env: env:
- BUILD_SYSTEM=make BUILD_TYPE=RELEASE=0 RENDERER=Software - BUILD_SYSTEM=make RENDERER=Software
- BUILD_SYSTEM=cmake BUILD_TYPE=Debug RENDERER=Software - BUILD_SYSTEM=cmake RENDERER=Software
- BUILD_SYSTEM=make BUILD_TYPE=RELEASE=1 RENDERER=Software - BUILD_SYSTEM=make RENDERER=SDLSurface
- BUILD_SYSTEM=cmake BUILD_TYPE=RelWithDebInfo RENDERER=Software - BUILD_SYSTEM=cmake RENDERER=SDLSurface
- BUILD_SYSTEM=make BUILD_TYPE=RELEASE=0 RENDERER=SDLSurface - BUILD_SYSTEM=make RENDERER=SDLTexture
- BUILD_SYSTEM=cmake BUILD_TYPE=Debug RENDERER=SDLSurface - BUILD_SYSTEM=cmake RENDERER=SDLTexture
- BUILD_SYSTEM=make BUILD_TYPE=RELEASE=1 RENDERER=SDLSurface - BUILD_SYSTEM=make RENDERER=OpenGL3
- BUILD_SYSTEM=cmake BUILD_TYPE=RelWithDebInfo RENDERER=SDLSurface - BUILD_SYSTEM=cmake RENDERER=OpenGL3
- BUILD_SYSTEM=make BUILD_TYPE=RELEASE=0 RENDERER=SDLTexture - BUILD_SYSTEM=make RENDERER=OpenGLES2
- BUILD_SYSTEM=cmake BUILD_TYPE=Debug RENDERER=SDLTexture - BUILD_SYSTEM=cmake RENDERER=OpenGLES2
- BUILD_SYSTEM=make BUILD_TYPE=RELEASE=1 RENDERER=SDLTexture
- BUILD_SYSTEM=cmake BUILD_TYPE=RelWithDebInfo RENDERER=SDLTexture
- BUILD_SYSTEM=make BUILD_TYPE=RELEASE=0 RENDERER=OpenGL3
- BUILD_SYSTEM=cmake BUILD_TYPE=Debug RENDERER=OpenGL3
- BUILD_SYSTEM=make BUILD_TYPE=RELEASE=1 RENDERER=OpenGL3
- BUILD_SYSTEM=cmake BUILD_TYPE=RelWithDebInfo RENDERER=OpenGL3
- BUILD_SYSTEM=make BUILD_TYPE=RELEASE=0 RENDERER=OpenGLES2
- BUILD_SYSTEM=cmake BUILD_TYPE=Debug RENDERER=OpenGLES2
- BUILD_SYSTEM=make BUILD_TYPE=RELEASE=1 RENDERER=OpenGLES2
- BUILD_SYSTEM=cmake BUILD_TYPE=RelWithDebInfo RENDERER=OpenGLES2
jobs: jobs:
exclude: exclude:
# Apple's OpenGL is in a non-standard location, so these builds don't work # Apple's OpenGL is in a non-standard location, so this build doesn't work
- os: osx - os: osx
env: BUILD_SYSTEM=make BUILD_TYPE=RELEASE=0 RENDERER=OpenGL3 env: BUILD_SYSTEM=make RENDERER=OpenGL3
- os: osx
env: BUILD_SYSTEM=make BUILD_TYPE=RELEASE=1 RENDERER=OpenGL3
before_install: before_install:
# Set URL for Discord send script # Set URL for Discord send script
@ -91,7 +78,6 @@ before_install:
# Display build type # Display build type
- echo $BUILD_SYSTEM - echo $BUILD_SYSTEM
- echo $BUILD_TYPE
# The following Homebrew packages aren't linked by default, and need to be prepended to the path explicitly. # The following Homebrew packages aren't linked by default, and need to be prepended to the path explicitly.
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
@ -138,7 +124,7 @@ before_script:
if [ "$BUILD_SYSTEM" == "cmake" ]; then if [ "$BUILD_SYSTEM" == "cmake" ]; then
# Make build directory and generate CMake build files # Make build directory and generate CMake build files
mkdir -p ${CMAKE_BUILD_DIR} && cd ${CMAKE_BUILD_DIR} mkdir -p ${CMAKE_BUILD_DIR} && cd ${CMAKE_BUILD_DIR}
cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DFIX_BUGS=ON -DWARNINGS=ON -DWARNINGS_ALL=ON -DRENDERER=$RENDERER cmake .. -DCMAKE_BUILD_TYPE=Release -DFIX_BUGS=ON -DWARNINGS=ON -DWARNINGS_ALL=ON -DRENDERER=$RENDERER
cd .. cd ..
fi fi
@ -147,11 +133,11 @@ script:
if [ "$BUILD_SYSTEM" == "cmake" ]; then if [ "$BUILD_SYSTEM" == "cmake" ]; then
# CMake build # CMake build
cd ${CMAKE_BUILD_DIR} cd ${CMAKE_BUILD_DIR}
cmake --build . --config $BUILD_TYPE --parallel $JOBS cmake --build . --config Release --parallel $JOBS
cd .. cd ..
else else
# Make build # Make build
make -j $JOBS FIX_BUGS=1 $BUILD_TYPE WARNINGS=1 WARNINGS_ALL=1 RENDERER=$RENDERER make -j $JOBS FIX_BUGS=1 RELEASE=1 WARNINGS=1 WARNINGS_ALL=1 RENDERER=$RENDERER
fi fi
after_success: after_success: