From: Doug Coleman Date: Sat, 9 Dec 2017 08:54:34 +0000 (+0000) Subject: build.sh: Print current branch for travis-ci X-Git-Tag: 0.98~603 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=3a78b68dd56446ddca4a0f16de13256603b6c198 build.sh: Print current branch for travis-ci --- diff --git a/build.sh b/build.sh index b4334cbf19..aef1d9d857 100755 --- 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 +