diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 48a7838..0000000 --- a/.travis.yml +++ /dev/null @@ -1,150 +0,0 @@ -language: cpp -dist: xenial -matrix: - include: - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-4.9 - env: COMPILER=gcc GCC=4.9 PY=3 - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - env: COMPILER=gcc GCC=5 PY=3 - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - env: COMPILER=gcc GCC=5 PY=2 - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-6 - env: COMPILER=gcc GCC=6 PY=3 - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-7 - env: COMPILER=gcc GCC=7 PY=3 - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-xenial-4.0 - packages: - - g++-4.9 - - clang-4.0 - env: COMPILER=clang CLANG=4.0 PY=3 - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-xenial-5.0 - packages: - - g++-4.9 - - clang-5.0 - env: COMPILER=clang CLANG=5.0 PY=3 - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-xenial-6.0 - packages: - - clang-6.0 - env: COMPILER=clang CLANG=6.0 PY=3 - - os: osx - osx_image: xcode8 - compiler: clang - env: PY=3 -env: - global: - - MINCONDA_VERSION="latest" - - MINCONDA_LINUX="Linux-x86_64" - - MINCONDA_OSX="MacOSX-x86_64" -before_install: - - | - # Configure build variables - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - if [[ "$COMPILER" == "gcc" ]]; then - export CXX=g++-$GCC CC=gcc-$GCC; - fi - if [[ "$COMPILER" == "clang" ]]; then - export CXX=clang++-$CLANG CC=clang-$CLANG; - fi - elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - export CXX=clang++ CC=clang PYTHONHOME=$HOME/miniconda; - fi - - PYBIND11_VERSION=${PYBIND11_VERSION:-2.4.3} - -install: - # Define the version of miniconda to download - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - MINCONDA_OS=$MINCONDA_LINUX; - cat /proc/cpuinfo; - elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - MINCONDA_OS=$MINCONDA_OSX; - fi - - if [[ "$PY" == "3" ]]; then - wget "http://repo.continuum.io/miniconda/Miniconda3-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh; - PY_EXE=$HOME/miniconda/bin/python3.7; - else - wget "http://repo.continuum.io/miniconda/Miniconda2-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh; - PY_EXE=$HOME/miniconda/bin/python2.7; - fi - - bash miniconda.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 install pytest numpy -c conda-forge - - conda install cmake -c conda-forge - - | - if [[ "$PYBIND11_VERSION" == "master" ]]; then - conda_root=$(cd $(dirname $(which conda))/.. && pwd) - mkdir -p $conda_root/tmp - cd $conda_root/tmp - curl -sSL -o pybind11.tar.gz https://github.com/pybind/pybind11/archive/master.tar.gz - rm -rf pybind11-master - tar xf pybind11.tar.gz - cd pybind11-master - python setup.py install - mkdir -p build - cd build - cmake -DPYBIND11_TEST=OFF -DPYTHON_EXECUTABLE:FILEPATH=`which python` -DCMAKE_INSTALL_PREFIX=${conda_root} .. - make install - cd $TRAVIS_BUILD_DIR - else - conda install pybind11==${PYBIND11_VERSION} -c conda-forge - fi - - conda install xtensor==0.21.4 -c conda-forge - - cmake -D DOWNLOAD_GTEST=ON -D CMAKE_INSTALL_PREFIX=$HOME/miniconda -D PYTHON_EXECUTABLE=$PY_EXE . - - make -j2 test_xtensor_python - - make install - - rm -rf test/googletest-src - -script: - - py.test -s - - cd test - - ./test_xtensor_python - diff --git a/README.md b/README.md index 5c40460..1b47652 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ![xtensor-python](docs/source/xtensor-python.svg) -[![Travis](https://travis-ci.org/xtensor-stack/xtensor-python.svg?branch=master)](https://travis-ci.org/xtensor-stack/xtensor-python) +[![Azure Pipelines](https://dev.azure.com/xtensor-stack/xtensor-stack/_apis/build/status/xtensor-stack.xtensor-python?branchName=master)](https://dev.azure.com/xtensor-stack/xtensor-stack/_build/latest?definitionId=7&branchName=master) [![Appveyor](https://ci.appveyor.com/api/projects/status/4j2yd6k8o5xbimqf?svg=true)](https://ci.appveyor.com/project/xtensor-stack/xtensor-python) [![Documentation](http://readthedocs.org/projects/xtensor-python/badge/?version=latest)](https://xtensor-python.readthedocs.io/en/latest/?badge=latest) [![Join the Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/QuantStack/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) diff --git a/docs/environment.yml b/docs/environment.yml index 727c481..47e93f7 100644 --- a/docs/environment.yml +++ b/docs/environment.yml @@ -1,7 +1,7 @@ name: xtensor-python-docs channels: - - QuantStack + - conda-forge dependencies: - breathe