aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-11-29 15:11:08 +0100
committerMaximilian Hils <git@maximilianhils.com>2015-11-29 15:11:08 +0100
commit4c9fc2e3e9bcbbc8f781ccd012cb7ce3c45981e9 (patch)
tree748b01e3ccb1108443f0b33e502fc0b7e996e671 /.travis.yml
parentf02da6448d6c99d39ebe24623f3584e80f52806e (diff)
downloadmitmproxy-4c9fc2e3e9bcbbc8f781ccd012cb7ce3c45981e9.tar.gz
mitmproxy-4c9fc2e3e9bcbbc8f781ccd012cb7ce3c45981e9.tar.bz2
mitmproxy-4c9fc2e3e9bcbbc8f781ccd012cb7ce3c45981e9.zip
travis: build binaries on osx
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml21
1 files changed, 17 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 266852ee..aa5847ef 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -41,11 +41,11 @@ install:
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]
then
- brew update || brew update # try again if it fails
- brew outdated openssl || brew upgrade openssl
- brew install python
+ brew update || brew update # try again if it fails
+ brew outdated openssl || brew upgrade openssl
+ brew install python
fi
- - "pip install -r requirements.txt"
+ - "pip install --src .. -r requirements.txt"
before_script:
- "openssl version -a"
@@ -55,6 +55,19 @@ script:
after_success:
- coveralls
+ - |
+ if [[ $TRAVIS_OS_NAME == "osx" && $TRAVIS_BRANCH == "master" && -z $TRAVIS_PULL_REQUEST ]]
+ then
+ brew install curl --with-libssh2
+ pip install virtualenv
+ git clone https://github.com/mitmproxy/release.git ../release
+ pip install -e ../release
+ python ../release/rtool.py -p mitmproxy bdist
+ for f in ../release/dist/*
+ do
+ $(brew --prefix curl)/bin/curl -u $SNAPSHOT_AUTH --hostpubmd5 $SNAPSHOT_PUBKEY -T $f sftp://$SNAPSHOT_HOST/
+ done
+ fi
notifications:
irc: