Skip to content

Commit

Permalink
Fix building and enable to build always
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Jan 29, 2020
1 parent 9a8599a commit 8597884
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/build
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions pack
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,20 @@ function build_all {
GOOS=darwin GOARCH=amd64 build
}

function build_os {
GOARCH=amd64 build
}

case $1 in
"check" )
check_all
;;
"build" )
build_all
;;
"build-os" )
build_os
;;
* )
echo ""
echo "build list:"
Expand Down

0 comments on commit 8597884

Please sign in to comment.