mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-07 10:56:49 +00:00
Get rid of the CircleCI caches
This commit is contained in:
parent
19c7a2af85
commit
c1e617abc9
@ -86,35 +86,6 @@ jobs:
|
||||
command: |
|
||||
~/project/.circleci/bootstrap-test-environment.sh ~/project
|
||||
|
||||
- restore_cache: &RESTORE_HTTP_CACHE
|
||||
name: "Restoring pip HTTP cache"
|
||||
keys:
|
||||
# An exact match on the http cache key is great. It should have
|
||||
# exactly the packages (tgz, whl, whatever) we need.
|
||||
- v5-pip-http-{{ checksum "/tmp/project/setup.py" }}-{{ checksum "/tmp/project/src/allmydata/_auto_deps.py" }}
|
||||
# A prefix match is okay too. It might have a
|
||||
# partially-overlapping set of packages. That's a head-start, at
|
||||
# least. We might have to download a few more things but at least
|
||||
# we saved a little time. After we download some more stuff we'll
|
||||
# create a new cache entry with the full key above and the next
|
||||
# build will get a better cache hit.
|
||||
- v5-pip-http-
|
||||
|
||||
- restore_cache: &RESTORE_WHEELHOUSE
|
||||
name: "Restoring wheelhouse"
|
||||
keys:
|
||||
# As above, an exact match is great. Here, we also need to
|
||||
# include the job name to make sure the platform ABI matches.
|
||||
# There are binary wheels in this wheelhouse and we're not taking
|
||||
# care to make manylinux1 wheels. The binary wheels in this cache
|
||||
# will only work on some Linux distros.
|
||||
- v4-wheelhouse-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/project/setup.py" }}-{{ checksum "/tmp/project/src/allmydata/_auto_deps.py" }}
|
||||
# A partial match is okay too. It'll get us at least some of the
|
||||
# wheels. We do need to keep the job name as part of the key or
|
||||
# we might get binary wheels build against an incompatible ABI and
|
||||
# we won't be able to use them (and they'll break the build rather
|
||||
# than being ignored).
|
||||
- v4-wheelhouse-{{ .Environment.CIRCLE_JOB }}
|
||||
|
||||
- run: &SETUP_VIRTUALENV
|
||||
name: "Setup virtualenv"
|
||||
@ -126,21 +97,6 @@ jobs:
|
||||
"${TAHOE_LAFS_TOX_ENVIRONMENT}" \
|
||||
"${TAHOE_LAFS_TOX_ARGS}"
|
||||
|
||||
- save_cache: &SAVE_HTTP_CACHE
|
||||
name: "Saving pip HTTP cache"
|
||||
key: v5-pip-http-{{ checksum "/tmp/project/setup.py" }}-{{ checksum "/tmp/project/src/allmydata/_auto_deps.py" }}
|
||||
paths:
|
||||
# Perfectly valid for Linux. Note we exclude the wheel cache
|
||||
# because we want this cache to be valid across all platforms and
|
||||
# the wheels in the pip wheel cache are not necessarily so.
|
||||
- "/tmp/nobody/.cache/pip/http"
|
||||
|
||||
- save_cache: &SAVE_WHEELHOUSE
|
||||
name: "Caching wheelhouse"
|
||||
key: v4-wheelhouse-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/project/setup.py" }}-{{ checksum "/tmp/project/src/allmydata/_auto_deps.py" }}
|
||||
paths:
|
||||
- *WHEELHOUSE_PATH
|
||||
|
||||
- run: &RUN_TESTS
|
||||
name: "Run test suite"
|
||||
# Something about when it re-uses an existing environment blows up
|
||||
@ -225,16 +181,12 @@ jobs:
|
||||
- "checkout"
|
||||
# DRY, YAML-style. See the debian-9 steps.
|
||||
- run: *BOOTSTRAP_TEST_ENVIRONMENT
|
||||
- restore_cache: *RESTORE_HTTP_CACHE
|
||||
- restore_cache: *RESTORE_WHEELHOUSE
|
||||
- run: *SETUP_VIRTUALENV
|
||||
- run:
|
||||
name: "Install Tor"
|
||||
command: |
|
||||
# Don't forget that we moved the source tree to /tmp.
|
||||
/tmp/project/integration/install-tor.sh
|
||||
- save_cache: *SAVE_HTTP_CACHE
|
||||
- save_cache: *SAVE_WHEELHOUSE
|
||||
- run: *RUN_TESTS
|
||||
|
||||
|
||||
@ -294,14 +246,8 @@ jobs:
|
||||
yum install --assumeyes \
|
||||
net-tools
|
||||
|
||||
- restore_cache: *RESTORE_HTTP_CACHE
|
||||
- restore_cache: *RESTORE_WHEELHOUSE
|
||||
|
||||
- run: *SETUP_VIRTUALENV
|
||||
|
||||
- save_cache: *SAVE_HTTP_CACHE
|
||||
- save_cache: *SAVE_WHEELHOUSE
|
||||
|
||||
- run: *RUN_TESTS
|
||||
|
||||
- store_test_results: *STORE_TEST_RESULTS
|
||||
@ -390,14 +336,8 @@ jobs:
|
||||
python get-pip.py
|
||||
pip install virtualenv
|
||||
|
||||
- restore_cache: *RESTORE_HTTP_CACHE
|
||||
- restore_cache: *RESTORE_WHEELHOUSE
|
||||
|
||||
- run: *SETUP_VIRTUALENV
|
||||
|
||||
- save_cache: *SAVE_HTTP_CACHE
|
||||
- save_cache: *SAVE_WHEELHOUSE
|
||||
|
||||
- run: *RUN_TESTS
|
||||
|
||||
- store_test_results: *STORE_TEST_RESULTS
|
||||
|
Loading…
x
Reference in New Issue
Block a user