From 2ca363c082367124dae86f36d36da5e5368877e8 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 14 Mar 2018 00:47:14 +0100 Subject: travis: set extract=true when uploading reports --- .travis/targets/clang-analyzer.sh | 4 ++++ .travis/test-run.sh | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/.travis/targets/clang-analyzer.sh b/.travis/targets/clang-analyzer.sh index e0c172e..cbbff8c 100644 --- a/.travis/targets/clang-analyzer.sh +++ b/.travis/targets/clang-analyzer.sh @@ -36,3 +36,7 @@ deploy() { FILES=( *.tar.xz ) [[ ${RV} -ne 0 ]] && [[ "x${CC}" = "xclang" ]] } + +extract() { + grep . +} diff --git a/.travis/test-run.sh b/.travis/test-run.sh index 3e8a0f9..a723f41 100755 --- a/.travis/test-run.sh +++ b/.travis/test-run.sh @@ -25,6 +25,9 @@ BUILD=0 DEPLOY=0 [[ "x$(type -t deploy)" = "xfunction" ]] && DEPLOY=1 +EXTRACT=0 +[[ "x$(type -t extract)" = "xfunction" ]] && EXTRACT=1 + SOURCE_DIR="$(dirname "${SCRIPT_DIR}")" BUILD_DIR="${SOURCE_DIR}/build" @@ -77,6 +80,11 @@ do_sha512() { popd > /dev/null } +do_extract_flag() { + [[ ${EXTRACT} -eq 0 ]] && echo false && return 0 + basename "${1}" | extract &> /dev/null && echo true || echo false +} + do_curl() { curl \ --silent \ @@ -84,6 +92,7 @@ do_curl() { --form "version=${PV}" \ --form "file=@${1}" \ --form "sha512=$(do_sha512 ${1})" \ + --form "extract=$(do_extract_flag ${1})" \ "${DISTFILES_URL}" \ &> /dev/null # make sure that we don't leak tokens } -- cgit v1.2.3-18-g5258