FreedomBox/.travis.yml
Sunil Mohan Adapa 4f31ad65b9
travis: Use trusty and pygobject instead of pgi
- Run tests on Ubuntu Trusty (14.04) instead of Ubuntu Precise (12.04).

- Use pygobject instead of pgi to test what we actually use in
  production.

- Use a virtualenv trick to make sure that Python actually picks up
  system packages (python3-gi).
  https://pygobject.readthedocs.org/en/latest/testing.html#example-travis-ci-configuration

- Don't let apt-get hang for user input. Specify -y.
2016-02-26 18:55:56 -05:00

37 lines
823 B
YAML

# Travis-CI configuration file for Plinth
dist: trusty
sudo: required
language: generic
env:
- DJANGO_VERSION=">=1.7.0,<1.8.0"
- DJANGO_VERSION=">=1.8.0,<1.9.0"
- DJANGO_VERSION=">=1.9.0"
# Debian packages required
before_install:
- sudo apt-get update -qq
- sudo apt-get -y install augeas-tools gir1.2-packagekitglib-1.0 python3-dev python3-gi
# Command to install dependencies
install:
- virtualenv --python=python3 --system-site-packages _venv
- source _venv/bin/activate
- pip install Django$DJANGO_VERSION
- pip install coverage==3.7
- pip install -r requirements.txt
# Command to run tests
script: python3 setup.py test
notifications:
email:
on_success: change
on_failure: always
irc:
channels:
- "irc.oftc.net#freedombox"
on_success: always
on_failure: always