diff options
Diffstat (limited to '.travis')
-rwxr-xr-x | .travis/setup_ramdisk.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/.travis/setup_ramdisk.sh b/.travis/setup_ramdisk.sh index 1ac8f5b158d..75e2492d9cd 100755 --- a/.travis/setup_ramdisk.sh +++ b/.travis/setup_ramdisk.sh @@ -7,15 +7,16 @@ printf "${RED}SETUP RAMDISK${NC}\n" printf "${RED}disk size before build${NC}\n" df -h du -sh $HOME +du -sh $TRAVIS_BUILD_DIR -printf "${RED}move original home${NC}\n" -sudo mv /home/travis /home/travis.ori +printf "${RED}move original TRAVIS_BUILD_DIR${NC}\n" +sudo mv $TRAVIS_BUILD_DIR $TRAVIS_BUILD_DIR.ori printf "${RED}create ramdisk mount point${NC}\n" -sudo mkdir -p /home/travis +sudo mkdir -p $TRAVIS_BUILD_DIR printf "${RED}create ramdisk${NC}\n" -sudo mount -t tmpfs -o size=8192m tmps /home/travis -printf "${RED}copy home to ramdisk${NC}\n" -time sudo cp -R /home/travis.ori/. /home/travis -printf "${RED}give permissions to travis on its home in ramdisk${NC}\n" -sudo chown -R travis:travis /home/travis +sudo mount -t tmpfs -o size=8192m tmps $TRAVIS_BUILD_DIR +printf "${RED}copy TRAVIS_BUILD_DIR to ramdisk${NC}\n" +time sudo cp -R $TRAVIS_BUILD_DIR.ori/. $TRAVIS_BUILD_DIR +printf "${RED}give permissions to travis on its TRAVIS_BUILD_DIR in ramdisk${NC}\n" +sudo chown -R travis:travis $TRAVIS_BUILD_DIR |