language: python
cache: pip
python:
  - "2.7"
  - "3.5.1"
# command to install dependencies
install:
  - pip install --upgrade pip setuptools wheel
  - pip install -r requirements.txt --only-binary=numpy,scipy
  - pip install jupyter
  - pip install atari_py>=0.1.1
  - pip install hacking
  - pip install coveralls
  - python setup.py develop
before_script:
  - "export DISPLAY=:99.0"
  - sh -e /etc/init.d/xvfb start
  - sleep 3
# command to run tests
script:
  - flake8 chainerrl
  - flake8 tests
  - flake8 examples
  - nosetests -a '!gpu,!slow' -x tests --with-coverage --cover-package chainerrl
  - ./test_examples.sh -1
  - if [[ $TRAVIS_PYTHON_VERSION == 3.5.1 ]]; then jupyter nbconvert --to notebook --execute examples/quickstart/quickstart.ipynb --ExecutePreprocessor.timeout=600; fi
after_success:
  - coveralls

language: python
cache: pip
python:
  - "2.7"
  - "3.5.1"
env:
  - CHAINER_VERSION=2
  - CHAINER_VERSION=3
# command to install dependencies
install:
  - pip install --upgrade pip setuptools wheel
  - pip install -r requirements.txt --only-binary=numpy,scipy
  - if [ $CHAINER_VERSION -eq 2 ]; then
  -   pip install "chainer>=2.0.0,<3.0.0"
  - else
  -   pip install "chainer>=3.0.0rc1"
  - fi
  - pip install jupyter
  - pip install atari_py>=0.1.1
  - pip install hacking
  - pip install coveralls
  - python setup.py develop
before_script:
  - "export DISPLAY=:99.0"
  - sh -e /etc/init.d/xvfb start
  - sleep 3
# command to run tests
script:
  - flake8 chainerrl
  - flake8 tests
  - flake8 examples
  - nosetests -a '!gpu,!slow' -x tests --with-coverage --cover-package chainerrl
  - ./test_examples.sh -1
  - if [[ $TRAVIS_PYTHON_VERSION == 3.5.1 ]]; then jupyter nbconvert --to notebook --execute examples/quickstart/quickstart.ipynb --ExecutePreprocessor.timeout=600; fi
after_success:
  - coveralls

Add CHAINER_VERSION config to CI
Add CHAINER_VERSION config to CI

Chainer v2 and v3
