[gjs: 1/2] CI: correct the paths of the lint report
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/2] CI: correct the paths of the lint report
- Date: Wed, 7 Mar 2018 01:08:39 +0000 (UTC)
commit f587b7370410c7e3af1a6c73499822b77b2218ff
Author: Claudio André <claudioandre br gmail com>
Date: Tue Mar 6 15:09:09 2018 -0300
CI: correct the paths of the lint report
See 66741dc59e477485e7c09a62d063c827bcd3102c
test/test-ci.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/test/test-ci.sh b/test/test-ci.sh
index 7c0ad9b..f02a2ab 100755
--- a/test/test-ci.sh
+++ b/test/test-ci.sh
@@ -192,12 +192,13 @@ elif [[ $1 == "CPPLINT" ]]; then
elif [[ $1 == "ESLINT" ]]; then
# Install needed packages
npm install -g eslint
+ tmp_path=$(dirname $CI_PROJECT_DIR)
echo
echo '-- Javascript linter report --'
eslint examples installed-tests modules --format unix 2>&1 | \
tee "$save_dir"/eslint/current-report.txt | \
- sed -E -e 's/:[0-9]+:[0-9]+:/:LINE:COL:/' -e 's/[0-9]+ problems//' -e 's/\/root\/tmp-upstream//' -e
's/\/builds\/GNOME//' | \
+ sed -E -e 's/:[0-9]+:[0-9]+:/:LINE:COL:/' -e 's/[0-9]+ problems//' -e 's/\/root\/tmp-upstream//' -e
"s,$tmp_path,," | \
tee /cwd/current-report.txt
echo
@@ -208,7 +209,7 @@ elif [[ $1 == "ESLINT" ]]; then
echo '-- Master Javascript linter report --'
eslint examples installed-tests modules --format unix 2>&1 | \
tee "$save_dir"/eslint/master-report.txt | \
- sed -E -e 's/:[0-9]+:[0-9]+:/:LINE:COL:/' -e 's/[0-9]+ problems//' -e 's/\/root\/tmp-upstream//' -e
's/\/builds\/GNOME//' | \
+ sed -E -e 's/:[0-9]+:[0-9]+:/:LINE:COL:/' -e 's/[0-9]+ problems//' -e 's/\/root\/tmp-upstream//' -e
"s,$tmp_path,," | \
tee /cwd/master-report.txt
echo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]