forgive me

This commit is contained in:
Leijurv 2018-09-02 19:53:08 -07:00
parent 56762780e3
commit d7cf6b1438
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
3 changed files with 30 additions and 8 deletions

View File

@ -1,13 +1,13 @@
language: java language: java
sudo: required
services:
- docker
install: true install: true
script: script:
- ./gradlew check - docker build -t cabaletta/baritone .
- export DISPLAY=:99 - docker run cabaletta/baritone "./gradlew test"
- export LIBGL_ALWAYS_SOFTWARE=1 - 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"
- sudo apt-get update -qq --force-yes
- sudo apt-get install -qq --force-yes mesa-utils libgl1-mesa-glx xvfb
- /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
- glxinfo
- ./gradlew run

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM debian:jessie
RUN echo 'deb http://deb.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/jessie-backports.list
ENV DEBIAN_FRONTEND noninteractive
RUN apt update -y
RUN apt install --target-release jessie-backports \
openjdk-8-jdk \
ca-certificates-java \
--assume-yes
RUN apt install -qq --force-yes mesa-utils libgl1-mesa-glx libxcursor1 libxrandr2 libxxf86vm1 x11-xserver-utils xfonts-base xserver-common
ADD . /code
RUN dpkg -i /code/xvfb_1.16.4-1_amd64.deb
WORKDIR /code
RUN ./gradlew assemble

BIN
xvfb_1.16.4-1_amd64.deb Normal file

Binary file not shown.