Revert "Don't build a custom openssl on OSX"

This reverts commit 645430602d.

We actually need 1.0.2 for DTLSv1.2 and ALPN
This commit is contained in:
Steven Fackler 2015-06-30 00:07:38 -07:00
parent 61e61bbae4
commit a6ff56209d
2 changed files with 14 additions and 2 deletions

View File

@ -9,8 +9,10 @@ os:
env:
global:
- FEATURES="tlsv1_2 tlsv1_1 dtlsv1 dtlsv1_2 sslv2 aes_xts npn alpn"
before_install:
- (test $TRAVIS_OS_NAME == "osx" || ./openssl/test/build.sh)
before_script:
- ./openssl/test/test.sh
script:
- (cd openssl && cargo test)
- (test $TRAVIS_OS_NAME == "osx" || (cd openssl && cargo test --features "$FEATURES"))
- (cd openssl && LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH cargo test)
- (test $TRAVIS_OS_NAME == "osx" || (cd openssl && LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH cargo test --features "$FEATURES"))

10
openssl/test/build.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
set -e
mkdir /tmp/openssl
cd /tmp/openssl
sudo apt-get install gcc make
curl https://openssl.org/source/openssl-1.0.2-latest.tar.gz | tar --strip-components=1 -xzf -
./config --prefix=/usr/ shared
make
sudo make install