[gjs: 2/4] CI: save tokei result as artifacts
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 2/4] CI: save tokei result as artifacts
- Date: Tue, 6 Mar 2018 13:27:07 +0000 (UTC)
commit f9335fcaf7588d0fed33dbbadae305aa623960f8
Author: Claudio André <claudioandre br gmail com>
Date: Sun Mar 4 12:55:54 2018 -0300
CI: save tokei result as artifacts
It might be needed or useful.
.gitlab-ci.yml | 1 +
test/test-ci.sh | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e6d1551..43bad5a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,6 +19,7 @@ stages:
- $(pwd)/.cache/jhbuild/build/gjs/Makefile
- $(pwd)/coverage/
- $(pwd)/cppcheck/
+ - $(pwd)/tokei/
script:
# Run static code analysis OR
diff --git a/test/test-ci.sh b/test/test-ci.sh
index 822f9ad..ea3666f 100755
--- a/test/test-ci.sh
+++ b/test/test-ci.sh
@@ -64,6 +64,7 @@ source test/extra/do_jhbuild.sh
# Create the artifacts folders
mkdir -p $(pwd)/coverage; touch $(pwd)/coverage/doing-"$1"
mkdir -p $(pwd)/cppcheck; touch $(pwd)/cppcheck/doing-"$1"
+mkdir -p $(pwd)/tokei; touch $(pwd)/tokei/doing-"$1"
save_dir=$(pwd)
if [[ $1 == "GJS" ]]; then
@@ -147,7 +148,7 @@ elif [[ $1 == "TOKEI" ]]; then
echo '-- Project statistics --'
echo
- tokei .
+ tokei . | tee "$save_dir"/tokei/report.txt
fi
# Done
echo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]