mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
- 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.
37 lines
823 B
YAML
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
|