[postgis-tickets] r17553 - Travis: Avoid failing both if codecov download or upload fail

Raul raul at rmr.ninja
Thu Jun 20 09:28:42 PDT 2019


Author: algunenano
Date: 2019-06-20 09:28:41 -0700 (Thu, 20 Jun 2019)
New Revision: 17553

Modified:
   trunk/ci/travis/run_coverage.sh
   trunk/ci/travis/run_garden.sh
   trunk/ci/travis/run_nowagyu.sh
Log:
Travis: Avoid failing both if codecov download or upload fail


Modified: trunk/ci/travis/run_coverage.sh
===================================================================
--- trunk/ci/travis/run_coverage.sh	2019-06-20 15:13:22 UTC (rev 17552)
+++ trunk/ci/travis/run_coverage.sh	2019-06-20 16:28:41 UTC (rev 17553)
@@ -9,5 +9,4 @@
 ./autogen.sh
 ./configure CFLAGS="${CFLAGS_COV}" LDFLAGS="${LDFLAGS_COV}" --enable-debug
 make -j check
-curl -S -f https://codecov.io/bash -o .github/codecov.bash || echo "Coverage report failed"
-bash .github/codecov.bash || echo "Coverage report failed"
+(curl -S -f https://codecov.io/bash -o .github/codecov.bash && bash .github/codecov.bash) || echo "Coverage report failed"

Modified: trunk/ci/travis/run_garden.sh
===================================================================
--- trunk/ci/travis/run_garden.sh	2019-06-20 15:13:22 UTC (rev 17552)
+++ trunk/ci/travis/run_garden.sh	2019-06-20 16:28:41 UTC (rev 17553)
@@ -10,5 +10,4 @@
 ./configure CFLAGS="${CFLAGS_STD}" LDFLAGS="${LDFLAGS_STD}" --enable-debug
 make -j
 bash ./ci/travis/logbt -- make garden
-curl -S -f https://codecov.io/bash -o .github/codecov.bash
-bash .github/codecov.bash || echo "Coverage report failed"
+(curl -S -f https://codecov.io/bash -o .github/codecov.bash && bash .github/codecov.bash) || echo "Coverage report failed"

Modified: trunk/ci/travis/run_nowagyu.sh
===================================================================
--- trunk/ci/travis/run_nowagyu.sh	2019-06-20 15:13:22 UTC (rev 17552)
+++ trunk/ci/travis/run_nowagyu.sh	2019-06-20 16:28:41 UTC (rev 17553)
@@ -14,5 +14,4 @@
 # Standard build
 ./configure --without-wagyu CFLAGS="${CFLAGS}" CXXFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
 bash ./ci/travis/logbt -- make -j check RUNTESTFLAGS=--verbose
-curl -S -f https://codecov.io/bash -o .github/codecov.bash
-bash .github/codecov.bash || echo "Coverage report failed"
+(curl -S -f https://codecov.io/bash -o .github/codecov.bash && bash .github/codecov.bash) || echo "Coverage report failed"



More information about the postgis-tickets mailing list