Update .travis.yml and setup_variables.sh

This commit is contained in:
Jenkins 2020-10-12 00:40:35 +02:00
parent 6c4c168fd8
commit 0b1ed6b6e9
2 changed files with 3 additions and 3 deletions

View File

@ -30,11 +30,8 @@ addons:
- gperf
- cmake
- clang-10
- clang-tools-10
- libc++-10-dev
- libc++abi-10-dev
- libc++1-10
- libc++abi1-10
- ccache
- maven
- python3

View File

@ -41,6 +41,9 @@ elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export CPU_CORES=" -- -j${CPU_CORES_NUM}"
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export CMAKE_EXTRA_ARGUMENTS="-DOPENSSL_USE_STATIC_LIBS=ON -DCMAKE_FIND_LIBRARY_SUFFIXES=\".a\""
if [ "$CPU_ARCHITECTURE_NAME" = "aarch64" ]; then
export CMAKE_EXTRA_ARGUMENTS="-DCMAKE_POSITION_INDEPENDENT_CODE=ON $CMAKE_EXTRA_ARGUMENTS"
fi
export TRAVIS_CPU_ARCH_JAVA="$(tr '[:upper:]' '[:lower:]'<<<"${TRAVIS_CPU_ARCH}")"
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"