Fix building and enable to build always

This commit is contained in:
Daniel 2020-01-29 11:38:12 +01:00
parent 9a8599a8c7
commit 8597884c78
3 changed files with 11 additions and 7 deletions

View file

@ -25,12 +25,9 @@ install:
- dep ensure
- ./test install
script: ./test --scripted
before_deploy:
- git config --local user.name "travis"
- git config --local user.email ""
- ./pack build
script:
- ./test --scripted
- ./pack build-os
deploy:
provider: releases

View file

@ -11,7 +11,7 @@ if [[ "$BUILD_USER" == "" ]]; then
BUILD_USER=$(id -un)
fi
if [[ "$BUILD_HOST" == "" ]]; then
BUILD_HOST=$(hostname -f)
BUILD_HOST=$(hostname)
fi
if [[ "$BUILD_DATE" == "" ]]; then
BUILD_DATE=$(date +%d.%m.%Y)

7
pack
View file

@ -78,6 +78,10 @@ function build_all {
GOOS=darwin GOARCH=amd64 build
}
function build_os {
GOARCH=amd64 build
}
case $1 in
"check" )
check_all
@ -85,6 +89,9 @@ case $1 in
"build" )
build_all
;;
"build-os" )
build_os
;;
* )
echo ""
echo "build list:"