]> The Tcpdump Group git mirrors - tcpdump/commitdiff
CI: Lose the output folding props.
authorDenis Ovsienko <[email protected]>
Mon, 5 Jul 2021 11:09:59 +0000 (12:09 +0100)
committerDenis Ovsienko <[email protected]>
Mon, 5 Jul 2021 11:09:59 +0000 (12:09 +0100)
Same as in libpcap.

build.sh
build_matrix.sh

index 4fe1ef0fc2fef0c0a32448e165b16cfae2ed7ec2..1e6fbbf9ed68ae9b37cfa688d618b6f2b512cd5c 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -27,14 +27,6 @@ fi
 # For TESTrun
 export TCPDUMP_BIN="$PREFIX/bin/tcpdump"
 
-travis_fold() {
-    tf_action=${1:?}
-    tf_name=${2:?}
-    if [ "$TRAVIS" != true ]; then return; fi
-    printf 'travis_fold:%s:%s.script.%s\r' "$tf_action" "$LABEL" "$tf_name"
-    sleep 1
-}
-
 # Run a command after displaying it
 run_after_echo() {
     printf '$ '
@@ -43,11 +35,8 @@ run_after_echo() {
     $@
 }
 
-# LABEL is needed to build the travis fold labels
-LABEL="$BUILD_LIBPCAP.$REMOTE.$CC.$CMAKE.$CRYPTO.$SMB"
 if [ "$CMAKE" = no ]; then
     echo '$ ./configure [...]'
-    travis_fold start configure
     if [ "$BUILD_LIBPCAP" = yes ]; then
         echo "Using PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
         ./configure --with-crypto="$CRYPTO" --enable-smb="$SMB" --prefix="$PREFIX"
@@ -55,27 +44,22 @@ if [ "$CMAKE" = no ]; then
     else
         ./configure --disable-local-libpcap --with-crypto="$CRYPTO" --enable-smb="$SMB" --prefix="$PREFIX"
     fi
-    travis_fold end configure
 else
     rm -rf build
     mkdir build
     cd build
     echo '$ cmake [...]'
-    travis_fold start cmake
     if [ "$BUILD_LIBPCAP" = yes ]; then
         cmake -DWITH_CRYPTO="$CRYPTO" -DENABLE_SMB="$SMB" -DCMAKE_PREFIX_PATH="$PREFIX" -DCMAKE_INSTALL_PREFIX="$PREFIX" ..
         export LD_LIBRARY_PATH="$PREFIX/lib"
     else
         cmake -DWITH_CRYPTO="$CRYPTO" -DENABLE_SMB="$SMB" -DCMAKE_INSTALL_PREFIX="$PREFIX" ..
     fi
-    travis_fold end cmake
 fi
 run_after_echo "make -s clean"
 run_after_echo "make -s CFLAGS=-Werror"
 echo '$ make install'
-travis_fold start make_install
 make install
-travis_fold end make_install
 run_after_echo "$TCPDUMP_BIN --version"
 run_after_echo "$TCPDUMP_BIN -h"
 run_after_echo "$TCPDUMP_BIN -D"
@@ -113,20 +97,14 @@ fi
 # The DEBUG_BUILD variable is not set by default to avoid Travis error message:
 # "The job exceeded the maximum log length, and has been terminated."
 # Setting it needs to reduce the matrix cases.
-if [ "$TRAVIS" = true ] && [ -n "$DEBUG_BUILD" ] ; then
+if [ "$MATRIX_DEBUG" = true ] && [ -n "$DEBUG_BUILD" ] ; then
     echo '$ cat Makefile [...]'
-    travis_fold start cat_makefile
     sed '/DO NOT DELETE THIS LINE -- mkdep uses it/q' < Makefile
-    travis_fold end cat_makefile
     echo '$ cat config.h'
-    travis_fold start cat_config_h
     cat config.h
-    travis_fold end cat_config_h
     if [ "$CMAKE" = no ]; then
         echo '$ cat config.log'
-        travis_fold start cat_config_log
         cat config.log
-        travis_fold end cat_config_log
     fi
 fi
 if [ "$DELETE_PREFIX" = yes ]; then
index 08fa3eb64618baa246aad040d0a2848e0d9884e1..5c5df5eaf8bc63894730d0ef62e8697486ec9897 100755 (executable)
@@ -21,14 +21,6 @@ if [ -z "$PREFIX" ]; then
 fi
 COUNT=0
 
-travis_fold() {
-    tf_action=${1:?}
-    tf_name=${2:?}
-    if [ "$TRAVIS" != true ]; then return; fi
-    printf 'travis_fold:%s:%s.script.%s\r' "$tf_action" "$LABEL" "$tf_name"
-    sleep 1
-}
-
 # Display text in magenta
 echo_magenta() {
     printf '\033[35;1m' # ANSI magenta
@@ -52,19 +44,15 @@ build_tcpdump() {
                     export SMB
                     COUNT=$((COUNT+1))
                     echo_magenta "===== SETUP $COUNT: BUILD_LIBPCAP=$BUILD_LIBPCAP REMOTE=${REMOTE:-?} CC=$CC CMAKE=$CMAKE CRYPTO=$CRYPTO SMB=$SMB ====="
-                    # LABEL is needed to build the travis fold labels
-                    LABEL="$BUILD_LIBPCAP.$REMOTE.$CC.$CMAKE.$CRYPTO.$SMB"
                     # Run one build with setup environment variables:
                     # BUILD_LIBPCAP, REMOTE, CC, CMAKE, CRYPTO and SMB
                     ./build.sh
                     echo 'Cleaning...'
-                    travis_fold start cleaning
                     if [ "$CMAKE" = yes ]; then rm -rf build; else make distclean; fi
                     rm -rf "$PREFIX"/bin/tcpdump*
                     git status -suall
                     # Cancel changes in configure
                     git checkout configure
-                    travis_fold end cleaning
                 done
             done
         done