Update setup_variables.sh

This commit is contained in:
Andrea Cavalli 2020-08-23 20:33:03 +02:00
parent 4a18b722bf
commit a84d812362

View File

@ -16,10 +16,12 @@ if [ "$TRAVIS_CPU_ARCH" = "arm64" ]; then
export TRAVIS_CPU_ARCH_STANDARD="aarch64" export TRAVIS_CPU_ARCH_STANDARD="aarch64"
export TRAVIS_CPU_CORES="2" export TRAVIS_CPU_CORES="2"
else else
export TRAVIS_CPU_ARCH_STANDARD="${TRAVIS_CPU_ARCH,,}" TRAVIS_CPU_ARCH_STANDARD="$(tr '[:upper:]' '[:lower:]'<<<"${TRAVIS_CPU_ARCH}")"
export TRAVIS_CPU_ARCH_STANDARD;
export TRAVIS_CPU_CORES="2" export TRAVIS_CPU_CORES="2"
fi fi
export TRAVIS_OS_NAME_STANDARD="${TRAVIS_OS_NAME,,}" TRAVIS_OS_NAME_STANDARD="$(tr '[:upper:]' '[:lower:]'<<<"${TRAVIS_OS_NAME}")"
export TRAVIS_OS_NAME_STANDARD
if [ "$TRAVIS_OS_NAME_STANDARD" = "windows" ]; then if [ "$TRAVIS_OS_NAME_STANDARD" = "windows" ]; then
export TRAVIS_OS_NAME_SHORT="win" export TRAVIS_OS_NAME_SHORT="win"
else else
@ -42,11 +44,15 @@ if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
export JAVA_HOME="/c/Program Files/OpenJDK/openjdk-11.0.8_10" export JAVA_HOME="/c/Program Files/OpenJDK/openjdk-11.0.8_10"
export VCPKG_DIR=$TRAVIS_BUILD_DIR/vcpkg export VCPKG_DIR=$TRAVIS_BUILD_DIR/vcpkg
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export PATH="$PATH:$(/usr/libexec/java_home -v 14)" PATH="$PATH:$(/usr/libexec/java_home -v 14)"
export JAVA_HOME="$(/usr/libexec/java_home -v 14)" export PATH
export JAVA_INCLUDE_PATH="$(/usr/libexec/java_home -v 14)/include" JAVA_HOME="$(/usr/libexec/java_home -v 14)"
export JAVA_HOME
JAVA_INCLUDE_PATH="$(/usr/libexec/java_home -v 14)/include"
export JAVA_INCLUDE_PATH
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export TRAVIS_CPU_ARCH_JAVA="${TRAVIS_CPU_ARCH,,}" TRAVIS_CPU_ARCH_JAVA="$(tr '[:upper:]' '[:lower:]'<<<"${TRAVIS_CPU_ARCH}")"
export TRAVIS_CPU_ARCH_JAVA
export PATH="$PATH:/usr/lib/jvm/java-11-openjdk-$TRAVIS_CPU_ARCH_JAVA/bin" export PATH="$PATH:/usr/lib/jvm/java-11-openjdk-$TRAVIS_CPU_ARCH_JAVA/bin"
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-$TRAVIS_CPU_ARCH_JAVA" export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-$TRAVIS_CPU_ARCH_JAVA"
export JAVA_INCLUDE_PATH="/usr/lib/jvm/java-11-openjdk-$TRAVIS_CPU_ARCH_JAVA/include" export JAVA_INCLUDE_PATH="/usr/lib/jvm/java-11-openjdk-$TRAVIS_CPU_ARCH_JAVA/include"