.cirrus.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. env:
  2. CIRRUS_CLONE_DEPTH: 1
  3. container:
  4. dockerfile: .cirrus_Dockerfile
  5. cpu: 8
  6. memory: 32G
  7. use_in_memory_disk: true
  8. code_check_task:
  9. pip_cache:
  10. folder: /usr/local/lib/python3.9/site-packages
  11. fingerprint_script: cat .cirrus_requirements.txt
  12. populate_script: pip install -r .cirrus_requirements.txt
  13. utils_script:
  14. - python3 -m yapf --style '.style.yapf' -e '*/third_party/*' -rpd utils
  15. - ./devutils/run_utils_pylint.py --hide-fixme
  16. - ./devutils/run_utils_tests.sh
  17. devutils_script:
  18. - python3 -m yapf --style '.style.yapf' -e '*/third_party/*' -rpd devutils
  19. - ./devutils/run_devutils_pylint.py --hide-fixme
  20. - ./devutils/run_devutils_tests.sh
  21. validate_config_task:
  22. validate_config_script: ./devutils/validate_config.py
  23. validate_with_source_task:
  24. pip_cache:
  25. folder: /usr/local/lib/python3.9/site-packages
  26. fingerprint_script: cat .cirrus_requirements.txt
  27. populate_script: pip install -r .cirrus_requirements.txt
  28. chromium_download_script: |
  29. # These directories will not exist when this is called, unless cache retrieval
  30. # fails and leaves partially-complete files around.
  31. rm -rf chromium_src
  32. rm -rf chromium_download_cache
  33. mkdir chromium_download_cache
  34. # Attempt to download tarball
  35. if ! ./utils/downloads.py retrieve -i downloads.ini -c chromium_download_cache ; then
  36. # If tarball is not available, attempt a clone
  37. ./utils/clone.py -o chromium_src
  38. rm -rf chromium_src/uc_staging
  39. find chromium_src -type d -name '.git' -exec rm -rf "{}" \; -prune
  40. tar cf chromium_download_cache/chromium-$(cat chromium_version.txt).tar.xz \
  41. --transform s/chromium_src/chromium-$(cat chromium_version.txt)/ chromium_src
  42. fi
  43. unpack_source_script: |
  44. if [ ! -d chromium_src ]; then
  45. ./utils/downloads.py unpack --skip-unused -i downloads.ini -c chromium_download_cache chromium_src
  46. fi
  47. validate_patches_script:
  48. - ./devutils/validate_patches.py -l chromium_src -v
  49. validate_lists_script:
  50. # NOTE: This check is prone to false positives, but not false negatives.
  51. - ./devutils/check_files_exist.py chromium_src pruning.list domain_substitution.list
  52. # vim: set expandtab shiftwidth=4 softtabstop=4: