build.sh: Print current branch for travis-ci

factor-shell
Doug Coleman 2017-12-09 08:54:34 +00:00
parent 034337fd02
commit 3a78b68dd5
1 changed files with 7 additions and 0 deletions

View File

@ -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