language: python

dist: 'trusty'

python:
  - "2.7"
  - "3.6"

matrix:
  include:
    - python: "2.7"
    - python: "3.6"
  allow_failures:
    - python: "3.6"

env:
  - LINTREVIEW_SETTINGS="./settings.py" GOPATH="${TRAVIS_BUILD_DIR}/gocode"

before_install:
  - sudo apt-get -qq update
  - sudo apt-get -y install golang checkstyle

install:
  - pip install -r requirements-dev.txt
  - pip install .
  - pip install codecov
  - pip install coverage

before_script:
  # Install golint
  - go version
  - go get -u github.com/golang/lint/golint

  # install node and npm tools
  - rm -rf ~/.nvm
  - git clone https://github.com/creationix/nvm.git ~/.nvm
  - (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`)
  - source ~/.nvm/nvm.sh
  - nvm install 5
  - npm install

  # Use ruby2
  - rvm install 2.0.0
  - rvm use 2.0.0
  - bundle install --path ./bundle

  # Sample config file
  - cp settings.sample.py settings.py

script:
  - nosetests --with-coverage --cover-package lintreview

after_success:
  - codecov

notifications:
  email:
    on_failure: change

language: python

dist: 'trusty'

python:
  - "2.7"
  - "3.6"

matrix:
  include:
    - python: "2.7"
    - python: "3.6"

env:
  - LINTREVIEW_SETTINGS="./settings.py" GOPATH="${TRAVIS_BUILD_DIR}/gocode"

before_install:
  - sudo apt-get -qq update
  - sudo apt-get -y install golang checkstyle

install:
  - pip install -r requirements-dev.txt
  - pip install .
  - pip install codecov
  - pip install coverage

before_script:
  # Install golint
  - go version
  - go get -u github.com/golang/lint/golint

  # install node and npm tools
  - rm -rf ~/.nvm
  - git clone https://github.com/creationix/nvm.git ~/.nvm
  - (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`)
  - source ~/.nvm/nvm.sh
  - nvm install 5
  - npm install

  # Use ruby2
  - rvm install 2.0.0
  - rvm use 2.0.0
  - bundle install --path ./bundle

  # Sample config file
  - cp settings.sample.py settings.py

script:
  - nosetests --with-coverage --cover-package lintreview

after_success:
  - codecov

notifications:
  email:
    on_failure: change

Make py36 failing cause a build error.
Make py36 failing cause a build error.
