You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kaleidoscope/.travis/setup-ramdisk.sh

17 lines
309 B

#!/bin/bash
export BLDDIR=/home/travis/build
df -h
du -sh "$HOME"
du -sh "$BLDDIR"
sudo mv "$BLDDIR" "$BLDDIR.ori"
sudo mkdir -p "$BLDDIR"
sudo mount -t tmpfs -o size=8192m tmps "$BLDDIR"
time sudo cp -R "$BLDDIR.ori/." "$BLDDIR"
sudo chown -R travis:travis "$BLDDIR"
df -h
du -sh "$HOME"
du -sh "$BLDDIR"