[Git][ghc/ghc][master] gitlab-ci: Eliminate redundant push of CI metrics

Ben Gamari gitlab at gitlab.haskell.org
Sat Jun 13 19:29:11 UTC 2020



Ben Gamari pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
7a773f16 by Ben Gamari at 2020-06-13T15:10:55-04:00
gitlab-ci: Eliminate redundant push of CI metrics

- - - - -


1 changed file:

- .gitlab/ci.sh


Changes:

=====================================
.gitlab/ci.sh
=====================================
@@ -443,16 +443,20 @@ case $1 in
   build_make) build_make ;;
   test_make)
     fetch_perf_notes
-    test_make || push_perf_notes
-    push_perf_notes ;;
+    res=0
+    test_make || res=$?
+    push_perf_notes
+    exit $res ;;
   build_hadrian) build_hadrian ;;
   # N.B. Always push notes, even if the build fails. This is okay to do as the
   # testsuite driver doesn't record notes for tests that fail due to
   # correctness.
   test_hadrian)
     fetch_perf_notes
-    test_hadrian || push_perf_notes
-    push_perf_notes ;;
+    res=0
+    test_hadrian || res=$?
+    push_perf_notes
+    exit $res ;;
   run_hadrian) run_hadrian $@ ;;
   clean) clean ;;
   shell) shell $@ ;;



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7a773f169cfe072c7b29924c53075e4dfa4e2adb

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7a773f169cfe072c7b29924c53075e4dfa4e2adb
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200613/aaa41ca7/attachment-0001.html>


More information about the ghc-commits mailing list