]> gitweb.factorcode.org Git - factor.git/commitdiff
build.sh: Print current branch for travis-ci
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 9 Dec 2017 08:54:34 +0000 (08:54 +0000)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 9 Dec 2017 08:54:34 +0000 (08:54 +0000)
build.sh

index b4334cbf19b128fdf6c6560ad7dd5b32520ac0af..aef1d9d8570eff76a3b471fff94f574e955c0c38 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -362,6 +362,7 @@ echo_build_info() {
     $ECHO NUM_CORES=$NUM_CORES
     $ECHO WORD=$WORD
     $ECHO DEBUG=$DEBUG
+    $ECHO CURRENT_BRANCH=$CURRENT_BRANCH
     $ECHO FACTOR_BINARY=$FACTOR_BINARY
     $ECHO FACTOR_LIBRARY=$FACTOR_LIBRARY
     $ECHO FACTOR_IMAGE=$FACTOR_IMAGE
@@ -436,6 +437,7 @@ find_build_info() {
     find_num_cores
     set_cc
     find_word_size
+    find_branch
     set_factor_binary
     set_factor_library
     set_factor_image
@@ -554,6 +556,10 @@ current_git_branch() {
     git rev-parse --abbrev-ref HEAD
 }
 
+find_branch() {
+    CURRENT_BRANCH=$(current_git_branch)
+}
+
 checksum_url() {
     branch=$(current_git_branch)
     echo "http://downloads.factorcode.org/images/$branch/checksums.txt"
@@ -734,3 +740,4 @@ case "$1" in
     full-report) find_build_info; check_installed_programs; check_libraries ;;
     *) usage ;;
 esac
+