language: c
compiler:
    - gcc
install:
    - sudo apt-get update
    - sudo apt-get install --no-install-recommends libxcb-util0-dev libxcb-randr0-dev libxcb-icccm4-dev libxcb-xinerama0-dev
    - sudo apt-get install --no-install-recommends libanyevent-perl libanyevent-i3-perl libextutils-pkgconfig-perl xcb-proto cpanminus xvfb xserver-xephyr xauth libinline-perl libxml-simple-perl libmouse-perl libmousex-nativetraits-perl libextutils-depends-perl perl-modules libtest-deep-perl libtest-exception-perl libxml-parser-perl libtest-simple-perl libtest-fatal-perl libdata-dump-perl libtest-differences-perl libxml-tokeparser-perl libtest-use-ok-perl libipc-run-perl
    - sudo /bin/sh -c 'cpanm -n -v X11::XCB || true'
    - sudo /bin/sh -c 'cpanm -n -v IPC::System::Simple || true'
script:
    # this will cause run.pl to start a Xephyr instance on :1
    - "export XEWDISPLAY=:1"
    # start Xvfb on :99 and execute tests
    - "export DISPLAY=:99"
    - "cd test && xvfb-run -n 99 ./run.pl"
    - "cd .."

language: c
compiler:
    - gcc
install:
    - sudo apt-get update
    - sudo apt-get install --no-install-recommends libxcb-util0-dev libxcb-randr0-dev libxcb-icccm4-dev libxcb-xinerama0-dev
    - sudo apt-get install --no-install-recommends libanyevent-perl libanyevent-i3-perl libextutils-pkgconfig-perl xcb-proto cpanminus xvfb xserver-xephyr xauth libinline-perl libxml-simple-perl libmouse-perl libmousex-nativetraits-perl libextutils-depends-perl perl-modules libtest-deep-perl libtest-exception-perl libxml-parser-perl libtest-simple-perl libtest-fatal-perl libdata-dump-perl libtest-differences-perl libxml-tokeparser-perl libtest-use-ok-perl libipc-run-perl
    - sudo /bin/sh -c 'cpanm -n -v X11::XCB || true'
    - sudo /bin/sh -c 'cpanm -n -v IPC::System::Simple || true'
script:
    - "export DISPLAY=:99"
    - "cd test && xvfb-run -n 99 ./run.pl"
    - "cd .."

Remove explicitly setting XEWDISPLAY to :1 for Travis as this is now the default.
Remove explicitly setting XEWDISPLAY to :1 for Travis as this is now the default.
