Skip to content

Commit 4ed4993

Browse files
committed
Fix travis
1 parent 975ddb6 commit 4ed4993

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis/after_success

+2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ SRC_DIR="$(pwd)"
1717
cd "$GOPATH/releasing/idist"
1818
for x in *; do
1919
echo "$x"
20+
mkdir -p "$x/doc"
2021
cp "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/.travis/dist-readme.md" "$x"/README.md || \
2122
cp "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/README.md" "$x/" || true
23+
cp "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/_doc/"* "$x/doc/"
2224
tar -zcf "../dist/$(basename "$x").tar.gz" "$x"
2325
done
2426

.travis/script

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ mkdir -p "$GOPATH/releasing/idist" "$GOPATH/releasing/dist"
1818

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

2424
# non-cgo crosscompile
25-
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
25+
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
2626
RESULT2=$?
2727

2828
echo cgo crosscompile exited with code $RESULT1

0 commit comments

Comments
 (0)