summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwayne Litzenberger <dlitz@dlitz.net>2016-04-02 04:34:09 -0700
committerDwayne Litzenberger <dlitz@dlitz.net>2016-04-02 04:34:09 -0700
commit51947efdd63396682d82f42abd5ab6d9716f86a0 (patch)
tree6567160ba04fa77225ca41a2b6e2a610a457e3e2
parentd2aa507c509bc3ecb00d5f37b2d9b3b5abcc0bde (diff)
downloadpycrypto-51947efdd63396682d82f42abd5ab6d9716f86a0.tar.gz
foo2
-rw-r--r--.travis.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index b4ea289..9dac64d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -69,15 +69,19 @@ before_install:
#alias sha256sum=gsha256sum
#gsha256sum </dev/null || echo "NO gsha256sum"
#sha256sum </dev/null || echo "NO sha256sum"
- alias sha256sum='shasum -a 256'
+ sha256sum() {
+ shasum -a 256 "$@"
+ }
+ #mkdir -p ~/bin
+ #echo > ~/bin/sha256sum '#!/bin/sh'
+ #echo >> ~/bin/sha256sum 'exec shasum -a 256 "$@"'
+ #chmod 755 ~/bin/sha256sum
fi
# Download and verify pyenv, or use cached version if available.
- pyenv_uri=https://github.com/yyuu/pyenv/archive/v20160310.tar.gz
- pyenv_tarball="$HOME/.pyenv/cache/pyenv-$( basename "$pyenv_uri" )"
- - |-
- alias sha256sum='shasum -a 256' # OSX ONLY (FIXME)
- echo "886e386110bc24e4bfdd560bff0b22db34627fe4be203eacd28ca9e9c2491fcf *${pyenv_tarball}" | sha256sum -c - >/dev/null 2>&1 || wget -O"$pyenv_tarball" -c "$pyenv_uri"
- echo "886e386110bc24e4bfdd560bff0b22db34627fe4be203eacd28ca9e9c2491fcf *${pyenv_tarball}" | sha256sum -c -
+ - echo "886e386110bc24e4bfdd560bff0b22db34627fe4be203eacd28ca9e9c2491fcf *${pyenv_tarball}" | sha256sum -c - >/dev/null 2>&1 || wget -O"$pyenv_tarball" -c "$pyenv_uri"
+ - echo "886e386110bc24e4bfdd560bff0b22db34627fe4be203eacd28ca9e9c2491fcf *${pyenv_tarball}" | sha256sum -c -
# Install pyenv into ~/.pyenv and load it
- tar --strip-components=1 -C ~/.pyenv -xvzf "${pyenv_tarball}"
- export PATH=~/.pyenv/bin:$PATH