Skip to content

Commit 262dfcf

Browse files
committed
mbedtls: enable Travis CI tests
1 parent ec79b0f commit 262dfcf

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ matrix:
5555
OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DDEBUG_POOL=ON -DCMAKE_BUILD_TYPE=Debug"
5656
os: linux
5757
dist: trusty
58+
- compiler: gcc
59+
env:
60+
MBEDTLS=1
61+
OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release -DUSE_HTTPS=mbedTLS -DMBEDTLS_ROOT_DIR=../deps/mbedtls"
62+
os: linux
63+
- compiler: gcc
64+
env:
65+
MBEDTLS=1
66+
OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON -DUSE_HTTPS=mbedTLS -DMBEDTLS_ROOT_DIR=../deps/mbedtls"
67+
os: linux
5868
allow_failures:
5969
- env: COVERITY=1
6070

script/install-deps-linux.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
set -x
4+
5+
if [ "$MBEDTLS" ]; then
6+
git clone https://github.com/ARMmbed/mbedtls.git ./deps/mbedtls
7+
cd ./deps/mbedtls
8+
git checkout mbedtls-2.6.1
9+
cmake -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF -DUSE_SHARED_MBEDTLS_LIBRARY=ON -DUSE_STATIC_MBEDTLS_LIBRARY=OFF .
10+
cmake --build .
11+
12+
echo "mbedTLS built in `pwd`"
13+
fi

0 commit comments

Comments
 (0)