shithub: cstory

Download patch

ref: 4ec5951bed0988e1208fc7213c7307cf596ee836
parent: a16086291e15a19828869cc3f4541e37eb52cb3a
author: Clownacy <[email protected]>
date: Thu Apr 2 17:01:54 EDT 2020

Use `cmake -B` in Travis

--- a/.travis.yml
+++ b/.travis.yml
@@ -107,14 +107,10 @@
 
 before_script:
     # Make build directory and generate CMake build files
-    - mkdir -p ${CMAKE_BUILD_DIR} && cd ${CMAKE_BUILD_DIR}
-    - cmake .. -DCMAKE_BUILD_TYPE=Release -DFIX_BUGS=ON -DBACKEND_RENDERER=$RENDERER -DCMAKE_C_FLAGS="-Wall -Wextra -pedantic" -DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic"
-    - cd ..
+    - cmake -B ${CMAKE_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release -DFIX_BUGS=ON -DBACKEND_RENDERER=$RENDERER -DCMAKE_C_FLAGS="-Wall -Wextra -pedantic" -DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic"
 
 script:
-    - cd ${CMAKE_BUILD_DIR}
-    - cmake --build . --config Release --parallel $JOBS
-    - cd ..
+    - cmake --build ${CMAKE_BUILD_DIR} --config Release --parallel $JOBS
 
 after_success:
     # Send success notification to Discord through DISCORD_WEBHOOK_URL