Permalink
Browse files

Moved Travis CI to trusty without pip

Try to reenable Travis CI now that they have trusty beta machines.
Install deps and build-deps from branch.
Note that Travis CI doesn't support for 3.4 system package with virtualenv
anymore, so give up on using pip (we can't use just pip packages because of
pygobject) and use system python instead.
  • Loading branch information...
1 parent 0872b2e commit db38b8c53c1729d0eaa7e95b6c0a8c173bf912d4 @didrocks didrocks committed Nov 4, 2015
Showing with 15 additions and 5 deletions.
  1. +11 −5 .travis.yml
  2. +4 −0 tests/daily_runs/get_build_depends
View
@@ -1,10 +1,16 @@
language: python
+sudo: required
+dist: trusty
python:
- "3.4"
before_install:
- - sudo add-apt-repository -y ppa:ubuntu-desktop/umake
+ - sudo add-apt-repository -y ppa:ubuntu-desktop/ubuntu-make
- sudo apt-get update
- - sudo apt-get install -qq python3.4 apt apt-utils libapt-pkg-dev gir1.2-glib-2.0 python3-gi sshpass python3-argcomplete python3-progressbar
-install:
- - "pip install -r requirements.txt"
-script: ./runtests
+ - sudo apt-get install -y $(tests/daily_runs/get_binary_depends ubuntu-make) $(tests/daily_runs/get_build_depends)
+install: "" # we don't want to use virtualenv (see below)
+# as we can't use a system virtualenv anymore in travis CI and that
+# python-gobject isn't installable in pypy, we have to use system libraries
+# instead for both uncompiled and compiled modules.
+# The easiest way without hacking PYTHONPATH, PYTHONHOME is to use the system
+# python version by prepending it in the PATH.
+script: PATH="/usr/bin:$PATH" ./runtests pep8 small
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# use this wrapper as travis doesn't like the sed with '/' inline.
+echo $(grep Depends debian/tests/control | tr -d , | tr -d @ | sed 's/Depends: //')

0 comments on commit db38b8c

Please sign in to comment.