install_packages.sh 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/usr/bin/env bash
  2. #
  3. # Copyright (c) 2020 Project CHIP Authors
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. set -x
  18. env
  19. apt-get update
  20. apt-get install -fy \
  21. git \
  22. curl \
  23. jq \
  24. make \
  25. autoconf \
  26. automake \
  27. libtool \
  28. pkg-config \
  29. g++ \
  30. clang-9 \
  31. clang-format-9 \
  32. clang-tidy-9 \
  33. lcov \
  34. shellcheck \
  35. libssl-dev \
  36. unzip \
  37. wget \
  38. libdbus-1-dev \
  39. libmbedtls-dev \
  40. python3.8-dev \
  41. python3.8-venv
  42. if [[ ! -f 'ci-cache-persistent/openssl/open_ssl_1.1.1f_installed' ]]; then
  43. mkdir -p ci-cache-persistent/openssl
  44. cd ci-cache-persistent/openssl || exit
  45. wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_1f.zip
  46. mkdir openssl
  47. cd openssl || exit
  48. unzip ../OpenSSL_1_1_1f.zip
  49. cd openssl-OpenSSL_1_1_1f || exit
  50. ./config
  51. make
  52. rm -rf ../OpenSSL_1_1_1f.zip
  53. cd ~/project || exit
  54. touch ci-cache-persistent/openssl/open_ssl_1.1.1f_installed
  55. chown -R circleci:circleci build
  56. fi
  57. cd ~/project/ci-cache-persistent/openssl/openssl/openssl-OpenSSL_1_1_1f || exit
  58. make install_sw install_ssldirs