Skip to content

Commit 58f427c

Browse files
[DEBUG] More fixes. Does it work yet?
1 parent 4febba3 commit 58f427c

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/Tests.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,7 @@ jobs:
199199
- name: Install code-climate tools for ${{ matrix.python-version }}
200200
if: ${{ !cancelled() && runner.os != 'Windows' }}
201201
shell: bash
202-
run: |
203-
./tests/fetch_cc-test-reporter || true ;
204-
ls -lap . || true ;
205-
ls -lap bin || true ;
202+
run: ./tests/fetch_cc-test-reporter || true ;
206203
- name: Generate Coverage for py3.9 on ${{ matrix.os }}
207204
if: ${{ runner.python-version == '3.9' }}
208205
run: make -f Makefile test ;

tests/fetch_cc-test-reporter

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666

6767
# to check though:
68-
diff -q <(tail -n 234 "$0" | head -n 232 | shasum -a 384 -t -) <(tail -n 1 "$0") || exit 70 ;
68+
diff -q <(tail -n 240 "$0" | head -n 238 | shasum -a 384 -t -) <(tail -n 1 "$0") || exit 70 ;
6969

7070
ulimit -t 90
7171
PATH="/bin:/sbin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:${PATH}"
@@ -79,6 +79,7 @@ EXIT_CODE=0
7979

8080
test -x "$(command -v grep)" || exit 126 ;
8181
test -x "$(command -v curl)" || exit 126 ;
82+
test -x "$(command -v mkdir)" || exit 126 ;
8283
hash -p ./.github/tool_shlock_helper.sh shlock || exit 255 ;
8384
test -x "$(command -v shlock)" || exit 126 ;
8485
test -x "$(command -v gpgv)" || exit 126 ;
@@ -241,6 +242,11 @@ elif [[ ( ${EXIT_CODE} -eq 0 ) ]] ; then
241242
printf "::debug::%s\n" "Validated ds-cli.sh for DeepSource" ;
242243
chmod -v 751 ./ds-cli.sh || EXIT_CODE=77
243244
fi ;
245+
246+
if [[ ( ${EXIT_CODE} -eq 0 ) ]] ; then
247+
printf "::debug::%s\n" "Creating ${BINDIR} directory for DeepSource" ;
248+
mkdir -v -m 755 "${BINDIR}" || EXIT_CODE=66
249+
fi ;
244250

245251
if [[ ( ${EXIT_CODE} -eq 0 ) ]] ; then
246252
# ref: https://docs.deepsource.com/docs/analyzers-test-coverage#setup-test-coverage
@@ -265,7 +271,7 @@ elif [[ ( ${EXIT_CODE} -eq 0 ) ]] ; then
265271
fi ;
266272
else
267273
printf "::debug::..=> %s\n" "Missing ${BINDIR}/deepsource CLI tool" ;
268-
EXIT_CODE=125 ;
274+
EXIT_CODE=66 ;
269275
printf "::debug::..=> %s\n" "Checking if ${BINDIR} is empty:" ;
270276
readonly BIN_FILES=$( ls -1 "${BINDIR}" 2>/dev/null ;)
271277
printf "::debug::..=> %s\n" "${BIN_FILES}" ;
@@ -298,4 +304,4 @@ cleanup 2>/dev/null || rm -f "${LOCK_FILE}" 2>/dev/null > /dev/null || : ; wait
298304
exit ${EXIT_CODE:-255} ;
299305

300306
# This file's code hash:
301-
c7f8f4f1cf337ce97fe32916af5507aa252f7ec441eb6105fcf3fe32d5463994e8889539cff613f5dfff802324fb0bc0 -
307+
bee43a56d600679736436b75cc9957dd2b6c14045498772a4c5e919449a74088a48c155ff70072be0ae5a268aa854bfe -

0 commit comments

Comments
 (0)