Update install_dependencies.sh

This commit is contained in:
Andrea Cavalli 2020-08-20 00:25:51 +02:00
parent 82e640cef5
commit 2cd1bed694

View File

@ -16,11 +16,12 @@ source ./travis/setup_variables.sh
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
echo "Linux"
if [ "$TRAVIS_CPU_ARCH" = "arm64" ]; then
sudo fallocate -l 4G /myswap.img
sudo mkswap swap.img
sudo chmod 0600 myswap.img
sudo chown root:root /myswap.img
sudo swapon swap.img
sudo dd if=/dev/zero of=$TRAVIS_BUILD_DIR/myswap.img bs=4096 count=1048576
#sudo fallocate -l 4G /myswap.img
sudo mkswap $TRAVIS_BUILD_DIR/myswap.img
sudo chmod 0600 $TRAVIS_BUILD_DIR/myswap.img
sudo chown root:root $TRAVIS_BUILD_DIR/myswap.img
sudo swapon $TRAVIS_BUILD_DIR/myswap.img
fi
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
echo "Windows"