diff options
author | David Rautureau <david.rautureau@sonarsource.com> | 2017-08-01 13:51:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-01 13:51:37 +0200 |
commit | 5360b7de7e1646c7535ec308a9160ec37289e084 (patch) | |
tree | 6e8e8213d2f6a716dbf982137d6cb34b365566b0 /.travis | |
parent | 76a0d7a1d3b4616789af80cf6f3274784a8523c6 (diff) | |
download | sonarqube-5360b7de7e1646c7535ec308a9160ec37289e084.tar.gz sonarqube-5360b7de7e1646c7535ec308a9160ec37289e084.zip |
BUILD-478 Set TRAVIS_BUILD_DIR in ramdisk
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 |