Update install_dependencies.sh and setup_variables.sh

This commit is contained in:
Andrea Cavalli 2020-08-20 00:46:46 +02:00
parent f35ed5693d
commit 98c4be767b
2 changed files with 1 additions and 9 deletions

View File

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

View File

@ -15,7 +15,7 @@ export MAVEN_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.
export TRAVIS_CPU_ARCH_JAVA="${TRAVIS_CPU_ARCH,,}"
if [ "$TRAVIS_CPU_ARCH" = "arm64" ]; then
export TRAVIS_CPU_ARCH_STANDARD="aarch64"
export TRAVIS_CPU_CORES="1"
export TRAVIS_CPU_CORES="32"
else
export TRAVIS_CPU_ARCH_STANDARD="${TRAVIS_CPU_ARCH,,}"
export TRAVIS_CPU_CORES="2"