File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ SRC_DIR="$(pwd)"
17
17
cd " $GOPATH /releasing/idist"
18
18
for x in * ; do
19
19
echo " $x "
20
+ mkdir -p " $x /doc"
20
21
cp " $GOPATH /src/github.com/$TRAVIS_REPO_SLUG /.travis/dist-readme.md" " $x " /README.md || \
21
22
cp " $GOPATH /src/github.com/$TRAVIS_REPO_SLUG /README.md" " $x /" || true
23
+ cp " $GOPATH /src/github.com/$TRAVIS_REPO_SLUG /_doc/" * " $x /doc/"
22
24
tar -zcf " ../dist/$( basename " $x " ) .tar.gz" " $x "
23
25
done
24
26
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ mkdir -p "$GOPATH/releasing/idist" "$GOPATH/releasing/dist"
18
18
19
19
# cgo crosscompile
20
20
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
22
22
RESULT1=$?
23
23
24
24
# 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
26
26
RESULT2=$?
27
27
28
28
echo cgo crosscompile exited with code $RESULT1
You can’t perform that action at this time.
0 commit comments