language: python
python:
  - "2.7"
# command to install dependencies
install: pip install -r requirements.txt
# command to prepare for tests
before_script:
  - export DATABASE_URL='sqlite:///local.db'
  - python models.py
# command to run tests
script: python -m unittest discover tests

language: python
python:
  - "2.7"
sudo: false
# command to install dependencies
install: pip install -r requirements.txt
# command to prepare for tests
before_script:
  - export DATABASE_URL='sqlite:///local.db'
  - python models.py
# command to run tests
script: python -m unittest discover tests

Upgrade to Travis CI containers
Upgrade to Travis CI containers

http://docs.travis-ci.com/user/migrating-from-legacy/?utm_source=legacy-notice&utm_medium=banner&utm_campaign=legacy-upgrade
