nguillaumin / slick2d-maven

Maven distribution of the Slick2D Gava game development library
BSD 3-Clause "New" or "Revised" License
66 stars 36 forks source link

Added Travis CI config #18

Closed nguillaumin closed 8 years ago

nguillaumin commented 8 years ago

Had to prevent some tests that require a display from running as Travis CI runs the build headless

Jasper-ketelaar commented 7 years ago

Late comment. Is there any solution for using travis for display tests instead of just plain ignoring them?

stefanhendriks commented 7 years ago

I never really tried it, in my code I stub out display things (so the Image and Graphics class and such). That only works so much (but often enough).

if you really want to give it a try, you could perhaps find some clues: here: https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI and here: https://github.com/travis-ci/travis-ci/issues/5645

especially in the latter, there is a link to a travis.yml file which might hold some clues how to get this display thing working (opengl should work). @nguillaumin do you remember why the display tests did not work?

Jasper-ketelaar commented 7 years ago

xfvb doesn't seem to work. I tried out a lot of things but to no avail. It seems that only LWJGL 3+ works with travis as I've read multiple people reporting this but since Slick2D doesn't support that version of LWJGL I think there is no solution. Thought I'd ask anyways.

stefanhendriks commented 7 years ago

too bad @Jasper-ketelaar - although, if you are in the mood you could help out with #21 (and that will fix your problem! ;-))

Jasper-ketelaar commented 7 years ago

Ha! I wish I had the time for that, would be fun.

nguillaumin commented 7 years ago

Sorry I don't remember the specifics (should have put more details in the commit message!), but I remember also trying a lot of things like @Jasper-ketelaar without succeeding...