Skip to content

Commit 87a9d03

Browse files
author
MarcoFalke
committed
Merge #13347: travis: Skip cache for lint stage
fa2d83e travis: Skip cache for lint stage (MarcoFalke) Pull request description: * Disable cache for lint stage according to https://docs.travis-ci.com/user/caching/#Explicitly-disabling-caching * Skip fetching of keys for non-cron branch pushes. Tree-SHA512: 300a0353a5ac0d2431eaff0a98e0e7f52429694737c136d13ff03334ea223a79436473a60db03a0ce4e4009d2a87d11612c7ac8d3a2e38d2bbdd3d800ff10000
2 parents 24f7011 + fa2d83e commit 87a9d03

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
include:
8484
- stage: lint
8585
sudo: false
86+
cache: false
8687
addons:
8788
apt:
8889
packages:
@@ -92,6 +93,7 @@ jobs:
9293
- travis_retry pip3 install flake8 --user
9394
before_script:
9495
- git fetch --unshallow
96+
script:
9597
- if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then test/lint/commit-script-check.sh $TRAVIS_COMMIT_RANGE; fi
9698
- test/lint/git-subtree-check.sh src/crypto/ctaes
9799
- test/lint/git-subtree-check.sh src/secp256k1
@@ -100,6 +102,7 @@ jobs:
100102
- test/lint/check-doc.py
101103
- test/lint/check-rpc-mappings.py .
102104
- test/lint/lint-all.sh
103-
script:
104-
- if [ "$TRAVIS_REPO_SLUG" = "bitcoin/bitcoin" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then while read LINE; do travis_retry gpg --keyserver hkp://subset.pool.sks-keyservers.net --recv-keys $LINE; done < contrib/verify-commits/trusted-keys; fi
105-
- if [ "$TRAVIS_REPO_SLUG" = "bitcoin/bitcoin" -a "$TRAVIS_EVENT_TYPE" = "cron" ]; then travis_wait 30 contrib/verify-commits/verify-commits.sh; fi
105+
- if [ "$TRAVIS_REPO_SLUG" = "bitcoin/bitcoin" -a "$TRAVIS_EVENT_TYPE" = "cron" ]; then
106+
while read LINE; do travis_retry gpg --keyserver hkp://subset.pool.sks-keyservers.net --recv-keys $LINE; done < contrib/verify-commits/trusted-keys &&
107+
travis_wait 30 contrib/verify-commits/verify-commits.sh;
108+
fi

0 commit comments

Comments
 (0)