aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-02-08 16:25:33 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-02-08 16:26:45 +0100
commitd55422e0a5d5f268f20f25baf943cf25870681d4 (patch)
treede473590f6639b772d1b7746cc7632989cd658de
parent9e54e5a49c026e4619f12985e009385f5b55d70c (diff)
downloadlogdiag-d55422e0a5d5f268f20f25baf943cf25870681d4.tar.gz
logdiag-d55422e0a5d5f268f20f25baf943cf25870681d4.tar.xz
logdiag-d55422e0a5d5f268f20f25baf943cf25870681d4.zip
Travis CI: Try making the tests work
-rw-r--r--.travis.yml4
-rw-r--r--tests/point-array.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 4854647..2092f61 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,12 +9,14 @@ compiler:
- gcc
before_install:
- sudo apt-get update -qq
+ - export DISPLAY=:99.0
+ - export NO_AT_BRIDGE=1
+ - sh -e /etc/init.d/xvfb start
install:
- sudo apt-get install -y libgtk-3-dev liblua5.2-dev libjson-glib-dev
before_script:
- mkdir build
- cd build
-env: NO_AT_BRIDGE=1
script:
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON
- make
diff --git a/tests/point-array.c b/tests/point-array.c
index 90490de..b8f8a3f 100644
--- a/tests/point-array.c
+++ b/tests/point-array.c
@@ -118,7 +118,7 @@ point_array_test_remove (PointArray *fixture, gconstpointer user_data)
int
main (int argc, char *argv[])
{
- gtk_test_init (&argc, &argv, NULL);
+ g_test_init (&argc, &argv, NULL);
/* Creation. */
g_test_add_func ("/point-array/new", point_array_test_new);