2 # - To test and prove that a new commit in the mbed TLS repository builds
3 # and integrates with mbed-os properly.
5 # - To test and prove that the current development head of mbed TLS builds
6 # and integrates with the current mbed-os master branch.
8 # The script fetches all the prerequisites and builds the mbed TLS 'tls-client'
9 # example. This script is triggered by every commit and once each night and the
10 # exact behaviour depends on how it was triggered:
11 # - If it is a nightly build then it builds the mbed TLS development head with
13 # - If it was triggered by the commit, then it builds the example with mbed TLS
14 # at that commit and mbed-os at the commit pointed by mbed-os.lib in the
19 - cd ../mbed-os-example-tls/tls-client/ && mbed compile -m K64F -t GCC_ARM -c
24 - cd .. && wget "https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q3-update/+download/gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2"
25 - cd .. && tar -xvjf gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
26 - ln -s ../gcc-arm-none-eabi-4_9-2015q3/bin/* ../bin/
28 - cd ../ && git clone https://github.com/ARMmbed/mbed-cli.git
29 - cd ../mbed-cli && sudo -H pip install -e .
30 # Get the sample application
31 - cd ../ && git clone git@github.com:ARMmbed/mbed-os-example-tls.git
33 - cd ../mbed-os-example-tls/tls-client && mbed deploy
34 # Update mbed-os to master only if it is a nightly build
36 if [ -n "${RUN_NIGHTLY_BUILD}" ]; then
37 cd ../mbed-os-example-tls/tls-client/mbed-os/ && mbed update master;
39 # Import mbedtls current revision
40 - ln -s ../../../../../../../mbedtls/ ../mbed-os-example-tls/tls-client/mbed-os/features/mbedtls/importer/TARGET_IGNORE/mbedtls
41 - cd ../mbed-os-example-tls/tls-client/mbed-os/features/mbedtls/importer/ && make
43 # Install the missing python packages
44 - cd ../mbed-os-example-tls/tls-client/mbed-os/ && sudo -H pip install -r requirements.txt