File tree 4 files changed +14
-5
lines changed
4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
- set -ex
1
+ #! /bin/bash
2
+
3
+ set -o nounset
4
+ set -o errexit
5
+ set -o xtrace
2
6
3
7
package () {
4
8
BIN_NAME_TAG=$CRATE_NAME -$TRAVIS_TAG -$TARGET
@@ -16,7 +20,7 @@ release_tag() {
16
20
git config --global user.email
" [email protected] "
17
21
git config --global user.name " Travis CI"
18
22
19
- git add --force bin/$BIN_NAME
23
+ git add --force bin/$BIN_NAME {,.sha256}
20
24
SHA=$( git rev-parse --short HEAD)
21
25
git commit --message " Add binary. $SHA . $TRAVIS_TAG -$TARGET ."
22
26
tagname=" binary-$TRAVIS_TAG -$TARGET "
@@ -26,6 +30,11 @@ release_tag() {
26
30
git reset --hard HEAD^
27
31
}
28
32
33
+ if [[ $TRAVIS_OS_NAME == ' osx' ]]; then
34
+ brew update && brew install coreutils && \
35
+ export PATH=" /usr/local/opt/coreutils/libexec/gnubin:$PATH "
36
+ fi
37
+
29
38
TARGETS=(${TARGETS//:/ } )
30
39
for TARGET in " ${TARGETS[@]} " ; do
31
40
BIN_NAME=$CRATE_NAME
Original file line number Diff line number Diff line change 1
- #! /usr/ bin/env bash
1
+ #! /bin/bash
2
2
3
3
set -o nounset
4
4
set -o errexit
Original file line number Diff line number Diff line change 1
- #! /usr/ bin/env bash
1
+ #! /bin/bash
2
2
3
3
set -o xtrace
4
4
Original file line number Diff line number Diff line change 1
- #! /usr/ bin/env bash
1
+ #! /bin/bash
2
2
# Tee server stdio into log file.
3
3
4
4
if test -z " $TMP " ; then
You can’t perform that action at this time.
0 commit comments