.cirrus.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. env:
  2. CIRRUS_CLONE_DEPTH: 1
  3. container:
  4. dockerfile: .cirrus_Dockerfile
  5. cpu: 6
  6. memory: 24G
  7. use_in_memory_disk: true
  8. code_check_task:
  9. pip_cache:
  10. folder: /usr/local/lib/python3.6/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.6/site-packages
  26. fingerprint_script: cat .cirrus_requirements.txt
  27. populate_script: pip install -r .cirrus_requirements.txt
  28. chromium_download_cache:
  29. folder: chromium_download_cache
  30. fingerprint_script: cat chromium_version.txt
  31. populate_script: |
  32. # These directories will not exist when this is called, unless cache retrieval
  33. # fails and leaves partially-complete files around.
  34. rm -rf chromium_src
  35. rm -rf chromium_download_cache
  36. mkdir chromium_download_cache
  37. # Attempt to download tarball
  38. if ! ./utils/downloads.py retrieve -i downloads.ini -c chromium_download_cache ; then
  39. # If tarball is not available, attempt a clone
  40. ./utils/clone.py -o chromium_src
  41. rm -rf chromium_src/uc_staging
  42. find chromium_src -type d -name '.git' -exec rm -rf "{}" \; -prune
  43. tar cf chromium_download_cache/chromium-$(cat chromium_version.txt).tar.xz \
  44. --transform s/chromium_src/chromium-$(cat chromium_version.txt)/ chromium_src
  45. fi
  46. unpack_source_script: |
  47. if [ ! -d chromium_src ]; then
  48. ./utils/downloads.py unpack --skip-unused -i downloads.ini -c chromium_download_cache chromium_src
  49. fi
  50. validate_patches_script:
  51. - ./devutils/validate_patches.py -l chromium_src -v
  52. validate_lists_script:
  53. # NOTE: This check is prone to false positives, but not false negatives.
  54. - ./devutils/check_files_exist.py chromium_src pruning.list domain_substitution.list
  55. # vim: set expandtab shiftwidth=4 softtabstop=4: