- Install wget explicitly to match openssl. - Install CMake explicitly. - Use newer miniconda link. - Reenable unittests. - gcc@9 + xcode@10 for osx due to missing <_stdio.h>. Other versions of gcc should also work. But as homebrew pour gcc@9 after update by default, so I just stick with latest version. - Disabled one external memory test for OSX. Not sure about the thread implementation in there and fixing external memory is beyond the scope of this PR. - Use Python3 with conda in jvm package.
23 lines
736 B
Bash
Executable File
23 lines
736 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${TASK} == "python_test" ]; then
|
|
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
|
wget -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
|
|
else
|
|
echo "We are no longer running Linux test on Travis."
|
|
exit 1
|
|
fi
|
|
bash conda.sh -b -p $HOME/miniconda
|
|
export PATH="$HOME/miniconda/bin:$PATH"
|
|
hash -r
|
|
conda config --set always_yes yes --set changeps1 no
|
|
conda update -q conda
|
|
# Useful for debugging any issues with conda
|
|
conda info -a
|
|
conda create -n python3 python=3.7
|
|
fi
|
|
|
|
if [ ${TASK} == "cmake_test" ] && [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
|
sudo softwareupdate -i "Command Line Tools (macOS High Sierra version 10.13) for Xcode-9.3"
|
|
fi
|