https://github.com/chainer/chainer
Raw File
Tip revision: dbf690f30d83dbd5bb09a4fa2f3c94718bf0a2db authored by Seiya Tokui on 26 July 2018, 07:28:10 UTC
Merge pull request #5156 from kmaehashi/release-v4.3.1-dockerfile
Tip revision: dbf690f
.travis.yml
language: python

cache:
  - pip
  - ccache

matrix:
  include:
    - os: linux
      python: "2.7"
    - os: linux
      python: "3.4"
    - os: linux
      python: "3.5"

    - os: osx
      language: generic
      env:
      - PYTHON_VERSION=2.7.10
      - PYENV_ROOT=~/.pyenv
      - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
      if: (branch = master OR branch = v4) AND (NOT type in (pull_request))
    - os: osx
      language: generic
      env:
      - PYTHON_VERSION=3.4.4
      - PYENV_ROOT=~/.pyenv
      - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
      if: (branch = master OR branch = v4) AND (NOT type in (pull_request))
    - os: osx
      language: generic
      env:
      - PYTHON_VERSION=3.5.1
      - PYENV_ROOT=~/.pyenv
      - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
      if: (branch = master OR branch = v4) AND (NOT type in (pull_request))

before_install:
  # Remove oclint as it conflicts with GCC (indirect dependency of hdf5)
  - if [[ $TRAVIS_OS_NAME = "osx" ]]; then
      brew update >/dev/null;
      brew outdated pyenv || brew upgrade --quiet pyenv;

      PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" pyenv install -ks $PYTHON_VERSION;
      pyenv global $PYTHON_VERSION;
      python --version;

      brew cask uninstall oclint;
      brew install hdf5;
    fi

install:
  - pip install -U pip wheel
  - python setup.py sdist
  - pip install dist/*.tar.gz
  - travis_wait pip install -U -e .[travis]

script:
  - flake8
  - autopep8 -r . --diff | tee check_autopep8
  - test ! -s check_autopep8
  - pushd tests
  - pytest -m "not slow and not gpu and not cudnn and not ideep" chainer_tests
  - popd
  - if [[ $TRAVIS_OS_NAME == "linux" ]]; then
      READTHEDOCS=True python setup.py develop;
    fi
  - pushd docs
  - make html
  - popd

sudo: false

addons:
  apt:
    packages:
      - gfortran
      - libhdf5-serial-dev
      - liblapack-dev
back to top