Skip to content

Commit

Permalink
travis: add an mbedtls build
Browse files Browse the repository at this point in the history
Closes #2531
  • Loading branch information
bagder committed May 4, 2018
1 parent 082bb41 commit 277d3cd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sudo: required
cache:
directories:
- $HOME/libpsl-0.20.1
- $HOME/mbedtls-mbedtls-2.8.0
- $HOME/libidn2-2.0.4

env:
Expand Down Expand Up @@ -64,6 +65,10 @@ matrix:
compiler: clang
dist: trusty
env: T=debug
- os: linux
compiler: clang
dist: trusty
env: T=debug C="--with-mbedtls --without-ssl"
- os: linux
compiler: gcc
dist: trusty
Expand Down Expand Up @@ -174,10 +179,22 @@ before_script:
make)
fi
fi
- |
if [ $TRAVIS_OS_NAME = linux ]; then
if [ ! -e $HOME/mbedtls-mbedtls-2.8.0/library/libmbedtls.a ]; then
(cd $HOME && \
curl -LO https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.8.0.tar.gz && \
tar -xzf mbedtls-2.8.0.tar.gz && \
cd mbedtls-mbedtls-2.8.0 && \
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_C_FLAGS=-fPIC && \
make)
fi
fi
- |
if [ $TRAVIS_OS_NAME = linux ]; then
(cd $HOME/libidn2-2.0.4 && sudo make install)
(cd $HOME/libpsl-0.20.1 && sudo make install)
(cd $HOME/mbedtls-mbedtls-2.8.0 && sudo make install)
fi
script:
Expand Down

0 comments on commit 277d3cd

Please sign in to comment.