Skip to content

Commit 7414d79

Browse files
committed
Add caching of apt-get + pip to .travis.yml
1 parent 2e1c2a1 commit 7414d79

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,19 @@ env:
1111
"target_url": "https://travis-ci.org/$TRAVIS_REPO_SLUG/jobs/$TRAVIS_JOB_ID"
1212
}\nDATA'
1313
14+
cache:
15+
pip: true
16+
directories:
17+
- $HOME/.cache/apt
18+
1419
before_install:
1520
- bash -c "$STATUS" pending "Local $NAME testing is in progress"
1621
# Make sure pipefail
1722
- set -o pipefail
23+
# Setup apt to cache
24+
- mkdir -p $HOME/.cache/apt/partial
25+
- sudo rm -rf /var/cache/apt/archives
26+
- sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
1827
# Setup ppa to make sure arm-none-eabi-gcc is correct version
1928
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
2029
- sudo add-apt-repository -y ppa:libreoffice/libreoffice-4-2

0 commit comments

Comments
 (0)