From 3e2a5cd4f3f139cc308bddad275e1170c72add29 Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 10 Aug 2018 22:23:07 -0300 Subject: [PATCH] travis/linux: Install dependencies and run tests with an X11 server --- .travis.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 493bd3a68..e0bbffce2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,26 +7,37 @@ matrix: env: - ENABLE_UI=ON - os: linux + addons: + apt: + packages: + - libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev env: - ENABLE_UI=OFF + - XVFB=xvfb-run - os: linux + addons: + apt: + packages: + - libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev env: - ENABLE_UI=ON + - XVFB=xvfb-run - os: linux addons: apt: sources: - ubuntu-toolchain-r-test packages: - - g++-7 + - g++-7 libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev env: - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" - ENABLE_UI=ON + - XVFB=xvfb-run before_script: - mkdir build - cd build - - cmake .. -DENABLE_TESTS=ON -DENABLE_UI=$ENABLE_UI + - $XVFB cmake .. -DENABLE_TESTS=ON -DENABLE_UI=$ENABLE_UI script: - make @@ -36,6 +47,6 @@ script: export ASEPRITE=$PWD/bin/aseprite git clone https://github.com/aseprite/tests.git cd tests - bash run-tests.sh + $XVFB bash run-tests.sh fi fi