language: c

install:
 - sudo add-apt-repository -y ppa:gstreamer-developers/ppa
 - sudo apt-get update
 - sudo apt-get install
        expect
        gir1.2-gstreamer-1.0
        gstreamer1.0-plugins-bad
        gstreamer1.0-plugins-base
        gstreamer1.0-plugins-good
        gstreamer1.0-tools
        gstreamer1.0-x
        moreutils
        pep8
        python-docutils
        python-flask
        python-gobject
        python-jinja2
        python-nose
        python-numpy
        python-opencv
        python-yaml
        tesseract-ocr
        tesseract-ocr-deu
        tesseract-ocr-eng
        xdotool
        xserver-xorg-video-dummy
        xterm
 - sudo pip install isort pylint==1.1.0
 - git clone http://git.chromium.org/webm/webminspector.git ~/webminspector
 - make

script:
 - PATH=~/webminspector:$PATH make check

language: c

install:
 - sudo add-apt-repository -y ppa:gstreamer-developers/ppa
 - sudo apt-get update
 - sudo apt-get install
        expect
        gir1.2-gstreamer-1.0
        gstreamer1.0-plugins-bad
        gstreamer1.0-plugins-base
        gstreamer1.0-plugins-good
        gstreamer1.0-tools
        gstreamer1.0-x
        moreutils
        pep8
        python-docutils
        python-flask
        python-gobject
        python-jinja2
        python-nose
        python-numpy
        python-opencv
        python-yaml
        tesseract-ocr
        tesseract-ocr-deu
        tesseract-ocr-eng
        xdotool
        xserver-xorg-video-dummy
        xterm
 - sudo pip install isort pylint==1.1.0
 - git clone http://git.chromium.org/webm/webminspector.git ~/webminspector
 - wget http://ftpmirror.gnu.org/parallel/parallel-20140522.tar.bz2 &&
   tar -xvf parallel-20140522.tar.bz2 &&
   cd parallel-20140522/ &&
   ./configure --prefix=/usr/local &&
   make &&
   sudo make install &&
   cd .. &&
   rm -Rf parallel-20140522/
 - make

script:
 - PATH=~/webminspector:$PATH make check

Install GNU parallel to speed up tests
Travis: Install GNU parallel to speed up tests

Debian (and by extension Ubuntu) systems have two packages that provide
the command `/usr/bin/parallel`: moreutils and parallel.  Unfortunately
they do not have compatible syntax.  stb-tester depends on moreutils so
we have to install that package.  With GNU parallel (provided by the
Debian package "parallel") we can parallelize the tests we run and so
make them faster.

With this commit we build and install GNU parallel as a part of Travis
commands to allow us to use GNU parallel on Travis' Ubuntu 12.04 and
thus accelerate the testing process.

Reduces Travis build time from ~10mins to 3m47, even though we've added
downloading, compiling and installing GNU parallel to the build process.

Incidentally of the 3m47s when I measured this 2m21s was spent
installing dependencies and 1m26s was spent actually running `make` and
`make check`.
