Commit 001408f9 authored by peastman's avatar peastman
Browse files

Conda packages for cmake and swig

parent 8d7b7983
......@@ -134,18 +134,30 @@ before_install:
fi
# The cmake version installed by apt on ARM and PPC is very old,
# so build a more recent version from source.
- if [[ "${TRAVIS_CPU_ARCH}" == "ppc64le" || "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then
sudo apt remove cmake;
pushd ${HOME};
wget https://github.com/Kitware/CMake/releases/download/v3.17.1/cmake-3.17.1.tar.gz;
tar xf cmake-3.17.1.tar.gz;
cd cmake-3.17.1;
./bootstrap --prefix=${HOME}/cmake;
make -j 4;
make install;
export PATH=${HOME}/cmake/bin:${PATH};
echo ${PATH};
popd;
#- if [[ "${TRAVIS_CPU_ARCH}" == "ppc64le" || "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then
# sudo apt remove cmake;
# pushd ${HOME};
# wget https://github.com/Kitware/CMake/releases/download/v3.17.1/cmake-3.17.1.tar.gz;
# tar xf cmake-3.17.1.tar.gz;
# cd cmake-3.17.1;
# ./bootstrap --prefix=${HOME}/cmake;
# make -j 4;
# make install;
# export PATH=${HOME}/cmake/bin:${PATH};
# echo ${PATH};
# popd;
# fi
- if [[ "${TRAVIS_CPU_ARCH}" == "ppc64le" ]]; then
wget https://anaconda.org/conda-forge/cmake/3.17.0/download/linux-ppc64le/cmake-3.17.0-hfb1cb51_0.tar.bz2;
mkdir $HOME/cmake;
tar -xjvf cmake-3.17.0-hfb1cb51_0.tar.bz2 -C $HOME/cmake;
export PATH=$HOME/cmake/bin:$PATH;
fi
- if [[ "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then
wget https://anaconda.org/conda-forge/cmake/3.17.0/download/linux-aarch64/cmake-3.17.0-h28c56e5_0.tar.bz2;
mkdir $HOME/cmake;
tar -xjvf cmake-3.17.0-h28c56e5_0.tar.bz2 -C $HOME/cmake;
export PATH=$HOME/cmake/bin:$PATH;
fi
#- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
# CMAKE_URL="http://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz";
......@@ -169,7 +181,7 @@ before_install:
# OpenCL, we skip the Python wrapper for speed. We're not using anaconda
# python, but this is a fast way to get an apparently functional precompiled
# build of swig that's more modern than what's in apt.
- if [[ "$OPENCL" == "false" && "$CUDA" == "false" && "$TRAVIS_OS_NAME" == "linux" ]]; then
- if [[ "$OPENCL" == "false" && "$CUDA" == "false" && "$TRAVIS_OS_NAME" == "linux" && "${TRAVIS_CPU_ARCH}" != "ppc64le" && "${TRAVIS_CPU_ARCH}" != "arm64" ]]; then
wget http://anaconda.org/omnia/swig/3.0.7/download/linux-64/swig-3.0.7-0.tar.bz2;
mkdir $HOME/swig;
tar -xjvf swig-3.0.7-0.tar.bz2 -C $HOME/swig;
......@@ -177,6 +189,22 @@ before_install:
export SWIG_LIB=$HOME/swig/share/swig/3.0.7;
pip install cython;
fi
- if [[ "${TRAVIS_CPU_ARCH}" == "ppc64le" ]]; then
wget https://anaconda.org/conda-forge/swig/4.0.1/download/linux-ppc64le/swig-4.0.1-hb209c28_0.tar.bz2;
mkdir $HOME/swig;
tar -xjvf swig-4.0.1-hb209c28_0.tar.bz2 -C $HOME/swig;
export PATH=$HOME/swig/bin:$PATH;
export SWIG_LIB=$HOME/swig/share/swig/4.0.1;
pip install cython;
fi
- if [[ "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then
wget https://anaconda.org/conda-forge/swig/4.0.1/download/linux-aarch64/swig-4.0.1-he1b5a44_0.tar.bz2;
mkdir $HOME/swig;
tar -xjvf swig-4.0.1-he1b5a44_0.tar.bz2 -C $HOME/swig;
export PATH=$HOME/swig/bin:$PATH;
export SWIG_LIB=$HOME/swig/share/swig/4.0.1;
pip install cython;
fi
- if [[ "$OPENCL" == "false" && "$CUDA" == "false" && "$TRAVIS_OS_NAME" == "osx" ]]; then
wget http://anaconda.org/omnia/swig/3.0.7/download/osx-64/swig-3.0.7-0.tar.bz2;
mkdir $HOME/swig;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment