(*)fixed cross build

This commit is contained in:
Fan Yang 2015-01-10 11:49:58 +08:00
parent a3ec3d0077
commit 4c5bf57011
2 changed files with 3 additions and 4 deletions

View File

@ -38,6 +38,7 @@ function go-all {
for PLATFORM in $PLATFORMS; do
GOOS=${PLATFORM%/*}
GOARCH=${PLATFORM#*/}
GOARM=6
CMD="go-${GOOS}-${GOARCH} $@"
echo "$CMD"
$CMD || FAILURES="$FAILURES $PLATFORM"

View File

@ -56,17 +56,15 @@ go_install()
tar xz -C ${TMPDIR-/tmp}
export GOROOT=${TMPDIR-/tmp}/go
export PATH=${TMPDIR-/tmp}/go/bin/:$PATH
wget https://raw.githubusercontent.com/davecheney/golang-crosscompile/master/crosscompile.bash
#wget https://raw.githubusercontent.com/davecheney/golang-crosscompile/master/crosscompile.bash
source ./crosscompile.bash
go-crosscompile-build-all
}
go_run()
{
cd $GOPATH
go-build-all
ls
cd "${TRAVIS_BUILD_DIR}";
go-build-all
}
prebuilt_prepare()