ARM-software / trappy

This repository has moved to https://gitlab.arm.com/tooling/trappy
Apache License 2.0
60 stars 39 forks source link

travis-ci: Don't fail if there isn't an X server running #221

Closed JaviMerino closed 8 years ago

JaviMerino commented 8 years ago

Travis is failing to run the tests because it is trying to use TK for plotting, which is not present in the environment:

======================================================================
ERROR: Test that plotter handles triplicates fine
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/travis/build/ARM-software/trappy/tests/test_duplicates.py", line 95, in test_plotter_triplicates
    per_line=3)

  File "/home/travis/build/ARM-software/trappy/trappy/__init__.py", line 28, in __init__
    raise exc

ImportError: No module named _tkinter, please install the python-tk package

See https://travis-ci.org/ARM-software/trappy/builds/157597148 for the full log.

Installing the python-tk package doesn't solve the issue because you have no X server running. Change the matplotlib backend to "agg" (the Anti-Grain Geometry C++ library) that doesn't need an X server.

mdigiorgio commented 8 years ago

Nice, let's get the green badge back :+1: