sudo: required

services:
    - docker

script:
    - pwd
    - mkdir build
    - docker run -v $(pwd):/Wangscape lukequaint/wangscape-build:latest /bin/sh -c \
      'cd /Wangscape/build && cmake .. && make;
       Xvfb :1 -screen 0 1600x900x24 &> xvfb.log &
       DISPLAY=:1.0; export DISPLAY;
       xvfb-run --server-args "-screen 0 1600x900x24" ./bin/WangscapeTest ../doc'

sudo: required

services:
    - docker

script:
    - pwd
    - mkdir build
    - docker run -v $(pwd):/Wangscape lukequaint/wangscape-build:latest /bin/sh -c 'travis-ubuntu-docker.sh'

Move Docker commands out of Travis script
Move Docker commands out of Travis script