Skip to content

Commit d6059f9

Browse files
committed
travis: cache qemu, update brew on macOS
1 parent 8dac3f1 commit d6059f9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ cache:
1414
cargo: true
1515
directories:
1616
- $HOME/Library/Caches/Homebrew
17-
- $TRAVIS_BUILD_DIR/qemu-4.1.0
17+
- $TRAVIS_BUILD_DIR/qemu-4.1.0/$ARCH-softmmu
1818

1919
addons:
2020
homebrew:
21+
update: true
22+
brewfile: true
2123
packages:
2224
- qemu
2325

@@ -52,3 +54,6 @@ script:
5254
- if [ $ARCH = riscv32 ]; then
5355
cd tests && ./test.sh && cd ..;
5456
fi
57+
58+
before_cache:
59+
- if [ $TRAVIS_OS_NAME = osx ]; then brew cleanup; fi

0 commit comments

Comments
 (0)