.travis.yml

Summary

Maintainability
Test Coverage
os: linux
language: python
python:
  - "2.7"

# MySQL doesn't start automatically in newer build environments
services:
  - mysql

# Cache the dependencies installed by pip
cache: pip
# Avoid pip log from affecting cache
before_cache: rm -fv ~/.cache/pip/log/debug.log

install:
  # Base requirements for apel
  - pip install -r requirements-py2.txt
  # Additional requirements for the unit and coverage tests
  - pip install -r requirements-test-py2.txt

# Commands to prepare environment for the test
before_script:
  - export PYTHONPATH=$PYTHONPATH:`pwd -P`
  - cd test

script: coverage run --branch --source=apel,bin -m unittest2 discover --buffer

after_success:
  - coveralls
  - codecov