shithub: cstory

Download patch

ref: 4737a7cbcaa1afcd3cccbdce0cd1c87191e78af5
parent: 6bbe0c977fc9ba35898f41c23634f9a0efa4e7fc
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Feb 5 15:59:08 EST 2020

Travis: Only create release builds

--- a/.travis.yml
+++ b/.travis.yml
@@ -48,36 +48,23 @@
     update: true
 
 env:
-    - BUILD_SYSTEM=make BUILD_TYPE=RELEASE=0 RENDERER=Software
-    - BUILD_SYSTEM=cmake BUILD_TYPE=Debug RENDERER=Software
-    - BUILD_SYSTEM=make BUILD_TYPE=RELEASE=1 RENDERER=Software
-    - BUILD_SYSTEM=cmake BUILD_TYPE=RelWithDebInfo RENDERER=Software
-    - BUILD_SYSTEM=make BUILD_TYPE=RELEASE=0 RENDERER=SDLSurface
-    - BUILD_SYSTEM=cmake BUILD_TYPE=Debug RENDERER=SDLSurface
-    - BUILD_SYSTEM=make BUILD_TYPE=RELEASE=1 RENDERER=SDLSurface
-    - BUILD_SYSTEM=cmake BUILD_TYPE=RelWithDebInfo RENDERER=SDLSurface
-    - BUILD_SYSTEM=make BUILD_TYPE=RELEASE=0 RENDERER=SDLTexture
-    - BUILD_SYSTEM=cmake BUILD_TYPE=Debug RENDERER=SDLTexture
-    - 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
+    - BUILD_SYSTEM=make RENDERER=Software
+    - BUILD_SYSTEM=cmake RENDERER=Software
+    - BUILD_SYSTEM=make RENDERER=SDLSurface
+    - BUILD_SYSTEM=cmake RENDERER=SDLSurface
+    - BUILD_SYSTEM=make RENDERER=SDLTexture
+    - BUILD_SYSTEM=cmake RENDERER=SDLTexture
+    - BUILD_SYSTEM=make RENDERER=OpenGL3
+    - BUILD_SYSTEM=cmake RENDERER=OpenGL3
+    - BUILD_SYSTEM=make RENDERER=OpenGLES2
+    - BUILD_SYSTEM=cmake RENDERER=OpenGLES2
 
 jobs:
   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
-      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:
     # Set URL for Discord send script
     - DISCORD_SEND_SCRIPT_URL=https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
@@ -91,7 +78,6 @@
 
     # Display build type
     - echo $BUILD_SYSTEM
-    - echo $BUILD_TYPE
 
     # The following Homebrew packages aren't linked by default, and need to be prepended to the path explicitly.
     - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
@@ -138,7 +124,7 @@
       if [ "$BUILD_SYSTEM" == "cmake" ]; then
         # Make build directory and generate CMake build files
         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 ..
       fi
 
@@ -147,11 +133,11 @@
       if [ "$BUILD_SYSTEM" == "cmake" ]; then
         # CMake build
         cd ${CMAKE_BUILD_DIR}
-        cmake --build . --config $BUILD_TYPE --parallel $JOBS
+        cmake --build . --config Release --parallel $JOBS
         cd ..
       else
         # 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
 
 after_success:
--