diff --git a/.travis.yml b/.travis.yml index a90e70ec..20fca03c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,4 @@ install: true script: - docker build -t cabaletta/baritone . - docker run cabaletta/baritone /bin/sh -c "./gradlew test" -- docker run cabaletta/baritone /bin/sh -c "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render; DISPLAY=:99 ./gradlew run" \ No newline at end of file +- docker run cabaletta/baritone /bin/sh -c "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 128x128x24 -ac +extension GLX +render; DISPLAY=:99 BARITONE_AUTO_TEST=true ./gradlew runClient" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 4f128e6f..5e435e7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,8 @@ RUN apt install -qq --force-yes mesa-utils libgl1-mesa-glx libxcursor1 libxrandr ADD . /code +RUN echo "\nrunClient {\nargs \"--width\",\"128\",\"--height\",\"128\"\n}" >> /code/build.gradle + RUN dpkg -i /code/xvfb_1.16.4-1_amd64.deb WORKDIR /code