Skip to content

Commit 85bb078

Browse files
committed
Install coreutils on osx to produce SHA256
Ref #819
1 parent 8540f4f commit 85bb078

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

ci/before_deploy.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
set -ex
1+
#!/bin/bash
2+
3+
set -o nounset
4+
set -o errexit
5+
set -o xtrace
26

37
package() {
48
BIN_NAME_TAG=$CRATE_NAME-$TRAVIS_TAG-$TARGET
@@ -16,7 +20,7 @@ release_tag() {
1620
git config --global user.email "[email protected]"
1721
git config --global user.name "Travis CI"
1822

19-
git add --force bin/$BIN_NAME
23+
git add --force bin/$BIN_NAME{,.sha256}
2024
SHA=$(git rev-parse --short HEAD)
2125
git commit --message "Add binary. $SHA. $TRAVIS_TAG-$TARGET."
2226
tagname="binary-$TRAVIS_TAG-$TARGET"
@@ -26,6 +30,11 @@ release_tag() {
2630
git reset --hard HEAD^
2731
}
2832

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+
2938
TARGETS=(${TARGETS//:/ })
3039
for TARGET in "${TARGETS[@]}"; do
3140
BIN_NAME=$CRATE_NAME

ci/script.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/bin/bash
22

33
set -o nounset
44
set -o errexit

tests/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/bin/bash
22

33
set -o xtrace
44

tests/wrapper-server.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/bin/bash
22
# Tee server stdio into log file.
33

44
if test -z "$TMP"; then

0 commit comments

Comments
 (0)