Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install android tools r25.2.3 concurrently #639

Merged
Prev

Invalidate entire Salt cache on Travis

This will clear the entire cache in between runs
when running with SALT_FROM_SCRATCH=false.
Originally, only sls and other files in the state tree were cleared,
but since external modules and other files also need to be cleared,
just clear everything for robustness.

Additionally, move this to after we checkout the new code,
since we sync everything after invalidating the cache,
and we want to sync the new configuration instead of the old one.
  • Loading branch information
aneeshusa committed Apr 20, 2017
commit c82043c151494a189835c375c18659db8333bc85
@@ -58,12 +58,13 @@ else
run_salt 'old'
set -o errexit

git checkout "${TRAVIS_COMMIT}"

travis_fold_start "salt.invalidate_cache" 'Invalidating the Salt cache'
rm -rf /var/cache/salt/minion/files/base/*
salt_call 'saltutil.clear_cache'
salt_call 'saltutil.sync_all'
travis_fold_end "salt.invalidate_cache"

git checkout "${TRAVIS_COMMIT}"
run_salt 'upgrade'
fi

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.