diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-04-25 09:20:08 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-04 08:36:51 +0200 |
commit | 277d3cdc0f45606defd275276f9ca4b5cfeeb16b (patch) | |
tree | bc8cb7e18d812a2bfbecdca8c012c10ec514c3be | |
parent | 082bb41311a832ae1b83bb8fe1dfdefcf4e68ea5 (diff) | |
download | curl-277d3cdc0f45606defd275276f9ca4b5cfeeb16b.tar.gz |
travis: add an mbedtls buildbagder/travis-mbedtls
Closes #2531
-rw-r--r-- | .travis.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 8019c8846..3235ae39a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: @@ -65,6 +66,10 @@ matrix: 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 env: T=iconv @@ -176,8 +181,20 @@ before_script: 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: |