Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e5613c

Browse files
committed
added new CI configuration for mbedtls
1 parent 00e5422 commit 0e5613c

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ matrix:
4848
- VALGRIND=1
4949
OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Debug"
5050
os: linux
51+
- compiler: gcc
52+
env:
53+
- MBEDTLS=1
54+
OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Debug -DUSE_OPENSSL=OFF -DMBEDTLS_ROOT_DIR=../mbedtls"
55+
os: linux
5156
allow_failures:
5257
- env: COVERITY=1
5358
- env:

script/cibuild.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ then
66
exit $?;
77
fi
88

9+
if [ -n "$MBEDTLS" ];
10+
then
11+
./script/mbedtls.sh;
12+
fi
13+
914
mkdir _build
1015
cd _build
1116
# shellcheck disable=SC2086

script/mbedtls.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
git clone https://github.com/ARMmbed/mbedtls.git mbedtls
4+
cd mbedtls
5+
git checkout mbedtls-2.1.2
6+
make CFLAGS='-fPIC -fpic' -j2 lib

0 commit comments

Comments
 (0)