1arch: amd64 2os: linux 3dist: xenial 4language: python 5 6cache: 7 directories: 8 - $HOME/.ccache 9 10jobs: 11 include: 12 - arch: amd64 13 python: 2.7 14 - arch: arm64 15 python: 2.7 16 17 - arch: amd64 18 python: 3.5 19 - arch: arm64 20 python: 3.5 21 22 - arch: amd64 23 python: 3.6 24 - arch: arm64 25 python: 3.6 26 27 - arch: amd64 28 python: 3.8 29 - arch: arm64 30 python: 3.8 31 32 - os: osx 33 env: PYTHON_VERSION=3.5 34 osx_image: xcode6.4 35 36 - os: osx 37 env: PYTHON_VERSION=3.6 38 osx_image: xcode6.4 39 40 - os: osx 41 env: PYTHON_VERSION=3.8 42 osx_image: xcode11.3 43 44install: 45 - | 46 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 47 echo "" 48 echo "Installing a fresh version of Miniconda." 49 MINICONDA_URL="https://repo.continuum.io/miniconda" 50 MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh" 51 curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}" 52 bash $MINICONDA_FILE -b 53 # Configure conda. 54 echo "" 55 echo "Configuring conda." 56 source $HOME/miniconda3/bin/activate root 57 conda config --add channels conda-forge 58 conda config --set show_channel_urls true 59 conda config --set always_yes yes --set changeps1 no 60 echo "" 61 echo "Creating conda environment" 62 conda create -n test python=${PYTHON_VERSION} gmp mpfr mpc 63 source activate test 64 echo "" 65 echo "Installing latex" 66 port install texlive texlive-latex-extra 67 python setup.py sdist 68 pip install --global-option=build_ext --global-option="-L$CONDA_PREFIX/lib" --global-option="-I$CONDA_PREFIX/include" dist/gmpy2-*.tar.gz 69 else # Linux 70 export PATH="/usr/lib/ccache:$PATH" 71 ccache -M 256M && ccache -s 72 sudo apt-get install libgmp-dev libmpfr-dev libmpfi-dev libmpc-dev texlive texlive-latex-extra latexmk 73 pip install Cython --verbose --disable-pip-version-check 74 python setup.py sdist 75 pip install dist/gmpy2-*.tar.gz 76 fi 77 pip install sphinx 78 79script: 80 - python test/runtests.py 81 - python test_cython/runtests.py 82 - cd docs/ 83 - make html 84 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 85 make latexpdf; 86 fi 87 88notifications: 89 slack: 90 on_success: never 91 on_failure : never 92