diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2017-11-06 11:49:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-06 11:49:46 -0800 |
commit | 28c89507d1b9e1013e690adc1ef16f30bd3fa4f5 (patch) | |
tree | 474ac78fa69219889f614fd654d0d0fd4e808a5c /script | |
parent | 1082eabb680cf6083f59071918d007d5314c59ea (diff) | |
parent | 71ba464435bb430b02d94c653cd518c11f7289ff (diff) | |
download | libgit2-28c89507d1b9e1013e690adc1ef16f30bd3fa4f5.tar.gz |
Merge pull request #4394 from libgit2/cmn/macos-ramdisk
travis: put clar's sandbox in a ramdisk on macOS
Diffstat (limited to 'script')
-rwxr-xr-x | script/cibuild.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/script/cibuild.sh b/script/cibuild.sh index 74946db0a..1c28baae6 100755 --- a/script/cibuild.sh +++ b/script/cibuild.sh @@ -10,6 +10,15 @@ fi if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PKG_CONFIG_PATH=$(ls -d /usr/local/Cellar/{curl,zlib}/*/lib/pkgconfig | paste -s -d':' -) + + # Set up a ramdisk for us to put our test data on to speed up tests on macOS + export CLAR_TMP="$HOME"/_clar_tmp + mkdir -p $CLAR_TMP + + # 5*2M sectors aka ~5GB of space + device=$(hdiutil attach -nomount ram://$((5 * 2 * 1024 * 1024))) + newfs_hfs $device + mount -t hfs $device $CLAR_TMP fi # Should we ask Travis to cache this file? |