Added arm64 job in Travis-CI (#6200)
Signed-off-by: odidev <odidev@puresoftware.com>
This commit is contained in:
parent
5908598666
commit
a2fea33103
@ -12,6 +12,9 @@ jobs:
|
||||
- os: linux
|
||||
arch: amd64
|
||||
env: TASK=python_sdist_test
|
||||
- os: linux
|
||||
arch: arm64
|
||||
env: TASK=python_sdist_test
|
||||
- os: osx
|
||||
arch: amd64
|
||||
osx_image: xcode10.1
|
||||
|
||||
@ -10,6 +10,10 @@ if [ ${TASK} == "python_sdist_test" ]; then
|
||||
conda activate python3
|
||||
python --version
|
||||
conda install numpy scipy
|
||||
if [ ${TRAVIS_CPU_ARCH} == "arm64" ]; then
|
||||
conda install cmake
|
||||
cmake --version
|
||||
fi
|
||||
|
||||
make pippack
|
||||
python -m pip install xgboost-*.tar.gz -v --user
|
||||
|
||||
@ -3,6 +3,8 @@
|
||||
if [ ${TASK} == "python_test" ] || [ ${TASK} == "python_sdist_test" ]; then
|
||||
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
||||
wget -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
|
||||
elif [ ${TRAVIS_CPU_ARCH} == "arm64" ]; then
|
||||
wget -O conda.sh https://github.com/conda-forge/miniforge/releases/download/4.8.2-1/Miniforge3-4.8.2-1-Linux-aarch64.sh
|
||||
else
|
||||
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
||||
fi
|
||||
@ -25,7 +27,7 @@ if [ ${TASK} == "s390x_test" ] && [ ${TRAVIS_CPU_ARCH} == "s390x" ]; then
|
||||
time python3 python3-pip python3-numpy python3-scipy python3-sklearn r-base
|
||||
fi
|
||||
|
||||
if [ ${TASK} == "python_sdist_test" ] && [ ${TRAVIS_OS_NAME} == "linux" ]; then
|
||||
if [ ${TASK} == "python_sdist_test" ] && [ ${TRAVIS_OS_NAME} == "linux" ] && [ ${TRAVIS_CPU_ARCH} == "amd64" ]; then
|
||||
wget https://github.com/Kitware/CMake/releases/download/v3.17.1/cmake-3.17.1-Linux-x86_64.sh
|
||||
sudo bash cmake-3.17.1-Linux-x86_64.sh --prefix=/usr/local --skip-license
|
||||
sudo rm -rf /usr/local/cmake-3.12.4 # Remove existing CMake
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user