atom / etch

Builds components using a simple and explicit API around virtual-dom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI not passing (xvfb config needs to be updated)

DeeDeeG opened this issue · comments

Prerequisites

Description

Travis CI runs fail with this error:

The command "export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start" failed and exited with 127 during .

This is because the CI config is setting up xvfb in a way that only works on the Trusty Travis CI image.

before_script:
  - export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start

Travis CI docs for setting up xvfb: https://docs.travis-ci.com/user/gui-and-headless-browsers#using-xvfb-to-run-tests-that-require-a-gui

The config should set dist: trusty to pin CI runs to a Trusty environment, or even better, use the config that is compatible with Travis CI's Xenial and newer images:

services:
  - xvfb

Steps to Reproduce

  1. Run Travis CI for this repository

Expected behavior:

With nothing having changed on master branch, this repo's CI should pass today just as much as it did when it was last run, in September 2018.

Actual behavior:

CI fails, due to updated default Travis CI environment (Xenial) requiring updated xvfb config.

Reproduces how often:

100% of the time.

Versions

master branch of this repository is affected.

Additional Information

I will post a PR to fix this. I prefer the "use Xenial/newer with proper configs" solution, rather than the "pin CI to Trusty" solution, personally.