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