Use cmake -B
in Travis
This commit is contained in:
parent
a16086291e
commit
4ec5951bed
1 changed files with 2 additions and 6 deletions
|
@ -107,14 +107,10 @@ install:
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue