dist: trusty
sudo: false
language: python
python:
    - "2.7"
    - "3.4"
    - "3.5"
    - "3.6"
    - "nightly"
before_install:
    - pip install --upgrade setuptools pip
    - pip install --upgrade virtualenv
install:
    - pip install --upgrade flake8 pylint
    - pip --version
    - virtualenv --version
    - flake8 --version
    - pylint --version
    - git --version
before_script:
    - flake8 --count ${TRAVIS_BUILD_DIR}
    # Do not run pylint on nightly Python versions as they may not be compatible
    - |
        if [[ $TRAVIS_PYTHON_VERSION != "nightly" ]]; then
            pylint ${TRAVIS_BUILD_DIR}
        fi
    - pip install pytest-cov codecov
script:
    - py.test lithium/tests.py -v --cov . --cov-report term-missing
after_success:
    - codecov

dist: trusty
sudo: false
language: python
python:
    - "2.7"
    - "3.4"
    - "3.5"
    - "3.6"
before_install:
    - pip install --upgrade setuptools pip
    - pip install --upgrade virtualenv
install:
    - pip install --upgrade flake8 pylint
    - pip --version
    - virtualenv --version
    - flake8 --version
    - pylint --version
    - git --version
before_script:
    - flake8 --count ${TRAVIS_BUILD_DIR}
     - pylint ${TRAVIS_BUILD_DIR}
    - pip install pytest-cov codecov
script:
    - py.test lithium/tests.py -v --cov . --cov-report term-missing
after_success:
    - codecov

Stop testing with Python nightly versions on Travis as the linters may not be updated as quickly.
Stop testing with Python nightly versions on Travis as the linters may not be updated as quickly.
