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 - dep ensure
- ./test install - ./test install
script: ./test --scripted script:
- ./test --scripted
before_deploy: - ./pack build-os
- git config --local user.name "travis"
- git config --local user.email ""
- ./pack build
deploy: deploy:
provider: releases provider: releases

View file

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

7
pack
View file

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