Skip to content

Commit

Permalink
Try fix darwin travis build seanmonstar#8
Browse files Browse the repository at this point in the history
  • Loading branch information
aagahi committed Dec 26, 2016
1 parent e6f9df8 commit 8306e71
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,23 @@ matrix:
- export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib

before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
# load travis-cargo
- |
pip install 'travis-cargo<0.2' --user &&
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export PATH=$HOME/.local/bin/:$PATH
else
export PATH=$HOME/Library/Python/2.7/bin:$PATH
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew install openssl && \
export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include && \
export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib && \
echo "Installed openssl for osx."
fi
script:
- cargo test
# - rustdoc --test Readme.md -L target/debug/deps -L target/debug
Expand Down

0 comments on commit 8306e71

Please # to comment.