diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-22 19:04:12 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-22 19:04:12 +0200 |
commit | c4832737e94c6401e6df3c0af912f51c910599ae (patch) | |
tree | 50f10cd19e1c95dff85b95061120ff64acea5aa7 /tools | |
parent | a43b0f074c98487bd1eac8cd33e624bde096a3b6 (diff) | |
download | weechat-c4832737e94c6401e6df3c0af912f51c910599ae.zip |
core: add CI with GitHub Actions, move codecov.io upload to GitHub Actions
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build-test.sh | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tools/build-test.sh b/tools/build-test.sh index 64e16164d..1a814dca4 100755 --- a/tools/build-test.sh +++ b/tools/build-test.sh @@ -22,7 +22,6 @@ # Build WeeChat according to environment variables: # - BUILDTOOL: cmake or autotools # - BUILDARGS: arguments for cmake or configure commands -# - CODECOVERAGE: "1" to build with code coverage (works only with cmake) # # Syntax to run the script with environment variables: # BUILDTOOL=cmake ./build-test.sh @@ -34,7 +33,7 @@ # ./build-test.sh cmake [arguments] # ./build-test.sh autotools [arguments] # -# This script is used to build WeeChat in Travis CI environment. +# This script is used to build WeeChat in CI environment. # run () @@ -71,12 +70,7 @@ if [ "$BUILDTOOL" = "cmake" ]; then run "cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON ${BUILDARGS}" run "make VERBOSE=1 -j$(nproc)" run "sudo make install" - if run "ctest -V" && [ "$CODECOVERAGE" = "1" ]; then - run "lcov --directory . --capture --output-file coverage.info" - run "lcov --remove coverage.info '/usr/*' --output-file coverage.info" - run "lcov --list coverage.info" - run "mv coverage.info .." - fi + run "ctest -V" fi if [ "$BUILDTOOL" = "autotools" ]; then |