From 4a5afab57d3a2c5afc67748642bbfedea4ec7dba Mon Sep 17 00:00:00 2001 From: IDG SERPRO Date: Fri, 1 Nov 2019 12:04:26 -0300 Subject: [PATCH] Corrige "Can't open /etc/init.d/xvfb" no travis. (#163) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Corrige "Can't open /etc/init.d/xvfb" no travis. https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment Com isso, o formato de execução do xvfb foi alterado: https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-to-run-tests-that-require-a-gui services: - xvfb * Remove sudo: false Ele é deprecated: https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration --- .travis.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7325a4a..f3c1a97 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ +services: + - xvfb language: python python: 2.7 -sudo: false cache: directories: - $HOME/.pylint.d @@ -19,9 +20,6 @@ install: - python bootstrap.py - bin/buildout annotate - bin/buildout -before_script: -- export DISPLAY=:99.0 -- sh -e /etc/init.d/xvfb start script: - bin/code-analysis - bin/test