diff options
author | iphydf <iphydf@users.noreply.github.com> | 2020-03-02 22:13:31 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-03-05 23:02:54 +0000 |
commit | 7923a619597cc9a4e62db65b0f8400176a78dfa3 (patch) | |
tree | 4a0ddb4306914f0f9bb171ac716b2269b8643b1f /.travis | |
parent | e35d70af1822095b7b273f1cec16878645b90078 (diff) |
Use ninja build system for the cmake-linux build.
Diffstat (limited to '.travis')
-rwxr-xr-x | .travis/cmake-linux | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.travis/cmake-linux b/.travis/cmake-linux index 1d425e54..9b2a1fae 100755 --- a/.travis/cmake-linux +++ b/.travis/cmake-linux | |||
@@ -87,7 +87,7 @@ travis_script() { | |||
87 | 87 | ||
88 | other/analysis/check_logger_levels | 88 | other/analysis/check_logger_levels |
89 | 89 | ||
90 | cmake -B_build -H. \ | 90 | cmake -B_build -H. -GNinja \ |
91 | -DCMAKE_C_FLAGS="$C_FLAGS" \ | 91 | -DCMAKE_C_FLAGS="$C_FLAGS" \ |
92 | -DCMAKE_CXX_FLAGS="$CXX_FLAGS" \ | 92 | -DCMAKE_CXX_FLAGS="$CXX_FLAGS" \ |
93 | -DCMAKE_EXE_LINKER_FLAGS="$LD_FLAGS" \ | 93 | -DCMAKE_EXE_LINKER_FLAGS="$LD_FLAGS" \ |
@@ -100,8 +100,9 @@ travis_script() { | |||
100 | -DUSE_IPV6=OFF \ | 100 | -DUSE_IPV6=OFF \ |
101 | -DAUTOTEST=ON | 101 | -DAUTOTEST=ON |
102 | 102 | ||
103 | cmake --build _build --parallel "$NPROC" --target install -- -k 0 | ||
104 | |||
103 | cd _build # pushd | 105 | cd _build # pushd |
104 | make "-j$NPROC" -k install | ||
105 | ctest -j50 --output-on-failure || \ | 106 | ctest -j50 --output-on-failure || \ |
106 | ctest -j50 --output-on-failure --rerun-failed | 107 | ctest -j50 --output-on-failure --rerun-failed |
107 | cd - # popd | 108 | cd - # popd |