circle.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. test:
  17. override:
  18. - cd ../mbed-os-example-tls/tls-client/ && mbed compile -m K64F -t GCC_ARM -c
  19. dependencies:
  20. pre:
  21. # Install gcc-arm
  22. - 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"
  23. - cd .. && tar -xvjf gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
  24. - ln -s ../gcc-arm-none-eabi-4_9-2015q3/bin/* ../bin/
  25. # Install mbed-cli
  26. - cd ../ && git clone https://github.com/ARMmbed/mbed-cli.git
  27. - cd ../mbed-cli && sudo -H pip install -e .
  28. # Get the sample application
  29. - cd ../ && git clone git@github.com:ARMmbed/mbed-os-example-tls.git
  30. # Get mbed-os
  31. - cd ../mbed-os-example-tls/tls-client && mbed deploy
  32. # Update mbed-os to master only if it is a nightly build
  33. - >
  34. if [ -n "${RUN_NIGHTLY_BUILD}" ]; then
  35. cd ../mbed-os-example-tls/tls-client/mbed-os/ && mbed update master;
  36. fi
  37. # Import mbedtls current revision
  38. - ln -s ../../../../../../../mbedtls/ ../mbed-os-example-tls/tls-client/mbed-os/features/mbedtls/importer/TARGET_IGNORE/mbedtls
  39. - cd ../mbed-os-example-tls/tls-client/mbed-os/features/mbedtls/importer/ && make
  40. override:
  41. # Install the missing python packages
  42. - cd ../mbed-os-example-tls/tls-client/mbed-os/ && sudo -H pip install -r requirements.txt