FreedomBox/.travis.yml
Sunil Mohan Adapa 3b7b271293
travis: Fix build errors due to change to non-system python
When virtualenv creates a environment with --python=python3, it was earlier
picking Python 3 from system at /usr/bin/python3. Due to recent changes in
Travis, now it picks up from Python 3.6.1 from /opt. This new Python does not
take into account system packages which are being installed via apt.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2017-08-02 11:31:35 +05:30

35 lines
749 B
YAML

# Travis-CI configuration file for Plinth
dist: trusty
sudo: required
language: generic
env:
- DJANGO_VERSION=">=1.10.0"
# Debian packages required
before_install:
- sudo apt-get update -qq
- sudo apt-get -y install augeas-tools python3-dev python3-gi libaugeas-dev
# Command to install dependencies
install:
- virtualenv --python=/usr/bin/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