Skip to content

Commit 75f0d7a

Browse files
committed
travis: use path to openssl from brew
1 parent 803bc02 commit 75f0d7a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ before_install:
1212
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
1313
brew update;
1414
brew install openssl;
15-
brew link openssl --force;
1615
fi
1716

1817
install:
1918
- wget "https://github.com/alfredh/pytools/raw/master/ccheck.py"
2019

2120
script:
22-
- make EXTRA_CFLAGS=-Werror
21+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
22+
make EXTRA_CFLAGS=-Werror;
23+
fi
24+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
25+
make EXTRA_CFLAGS="-I/usr/local/opt/openssl/include -Werror" EXTRA_LFLAGS="-L/usr/local/opt/openssl/lib";
26+
fi
2327
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python2 ccheck.py ; fi

0 commit comments

Comments
 (0)