Skip to content

Commit

Permalink
Fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
hlandau committed Dec 6, 2015
1 parent 975ddb6 commit 4ed4993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis/after_success
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ SRC_DIR="$(pwd)"
cd "$GOPATH/releasing/idist"
for x in *; do
echo "$x"
mkdir -p "$x/doc"
cp "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/.travis/dist-readme.md" "$x"/README.md || \
cp "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/README.md" "$x/" || true
cp "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/_doc/"* "$x/doc/"
tar -zcf "../dist/$(basename "$x").tar.gz" "$x"
done

Expand Down
4 changes: 2 additions & 2 deletions .travis/script
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ mkdir -p "$GOPATH/releasing/idist" "$GOPATH/releasing/dist"

# cgo crosscompile
REPOS="github.com/$TRAVIS_REPO_SLUG"
gox -cgo -osarch 'linux/386 linux/amd64' -output "$GOPATH/releasing/idist/{{.Dir}}-$TRAVIS_TAG-{{.OS}}_{{.Arch}}/bin/x" $REPOS
gox -cgo -osarch 'linux/386 linux/amd64' -output "$GOPATH/releasing/idist/ncdns-$TRAVIS_TAG-{{.OS}}_{{.Arch}}/bin/{{.Dir}}" $REPOS
RESULT1=$?

# non-cgo crosscompile
gox -osarch 'darwin/386 darwin/amd64 linux/arm freebsd/386 freebsd/amd64 freebsd/arm openbsd/386 openbsd/amd64 netbsd/386 netbsd/amd64 netbsd/arm dragonfly/amd64 solaris/amd64' -output "$GOPATH/releasing/idist/{{.Dir}}-$TRAVIS_TAG-{{.OS}}_{{.Arch}}/bin/x" $REPOS
gox -osarch 'darwin/386 darwin/amd64 linux/arm freebsd/386 freebsd/amd64 freebsd/arm openbsd/386 openbsd/amd64 netbsd/386 netbsd/amd64 netbsd/arm dragonfly/amd64 solaris/amd64' -output "$GOPATH/releasing/idist/ncdns-$TRAVIS_TAG-{{.OS}}_{{.Arch}}/bin/{{.Dir}}" $REPOS
RESULT2=$?

echo cgo crosscompile exited with code $RESULT1
Expand Down

0 comments on commit 4ed4993

Please sign in to comment.