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:
|
before_script:
|
||||||
# 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}
|
- 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"
|
||||||
- cmake .. -DCMAKE_BUILD_TYPE=Release -DFIX_BUGS=ON -DBACKEND_RENDERER=$RENDERER -DCMAKE_C_FLAGS="-Wall -Wextra -pedantic" -DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic"
|
|
||||||
- cd ..
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cd ${CMAKE_BUILD_DIR}
|
- cmake --build ${CMAKE_BUILD_DIR} --config Release --parallel $JOBS
|
||||||
- cmake --build . --config Release --parallel $JOBS
|
|
||||||
- cd ..
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
# Send success notification to Discord through DISCORD_WEBHOOK_URL
|
# Send success notification to Discord through DISCORD_WEBHOOK_URL
|
||||||
|
|
Loading…
Add table
Reference in a new issue