language: python
python:
  - "2.7"
  - "3.6"

env:
  - TRAVIS_NODE_VERSION="6"
  - TRAVIS_NODE_VERSION="8"

install:
  - 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 $TRAVIS_NODE_VERSION
  - npm install
  - gem install coveralls-lcov
  - pip install pytest pytest-cov coveralls flake8 virtualenv urllib3[secure]
  - pip install -r requirements.txt

script:
  - npm test
  - npm run lint
  - npm run pytest
  - npm run pylint

# For code coverage:
after_success:
  - coveralls-lcov -v -n coverage/lcov.info > coverage/coveralls.json
  - coveralls --merge=coverage/coveralls.json
  - rm -rf ./.coverage ./coverage ./htmlcov

language: python
python:
  - "2.7"
  - "3.6"

env:
  - TRAVIS_NODE_VERSION="6"
  - TRAVIS_NODE_VERSION="8"

install:
  - 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 $TRAVIS_NODE_VERSION
  - npm install -g codecov
  - npm install
  - pip install pytest pytest-cov codecov flake8 virtualenv urllib3[secure]
  - pip install -r requirements.txt

script:
  - export CODECOV_TOKEN="89d22de7-bfaf-43a0-81da-33cc733fd294"
  - npm test
  - npm run lint
  - npm run pytest
  - npm run pylint
  - which -a codecov | bash

Use codecov instead of coveralls
Use codecov instead of coveralls
