Merge "Update snapshot history" into tizen
[platform/upstream/iotivity.git] / extlibs / mbedtls / mbedtls / circle.yml
1 # Purpose:
2 # - To test and prove that a new commit in  the mbed TLS repository builds
3 # and integrates with mbed-os properly.
4 #           AND
5 # - To test and prove that the current development head of mbed TLS builds
6 # and integrates with the current mbed-os master branch.
7 #
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
12 #   mbed-os master.
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
15 #   example repository.
16
17 test:
18     override:
19         - cd ../mbed-os-example-tls/tls-client/ && mbed compile -m K64F -t GCC_ARM -c
20
21 dependencies:
22     pre:
23         # Install gcc-arm
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/
27         # Install mbed-cli
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
32         # Get mbed-os
33         - cd ../mbed-os-example-tls/tls-client && mbed deploy
34         # Update mbed-os to master only if it is a nightly build
35         - >
36             if [ -n "${RUN_NIGHTLY_BUILD}" ]; then
37                 cd ../mbed-os-example-tls/tls-client/mbed-os/ && mbed update master;
38             fi
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
42     override:
43         # Install the missing python packages
44         - cd ../mbed-os-example-tls/tls-client/mbed-os/ && sudo -H pip install -r requirements.txt