tapio / rlutil

C and C++ utilities for cross-platform console roguelike game creation.
http://tapio.github.com/rlutil/
229 stars 42 forks source link

Continuous Integration support (or lack thereof) #25

Closed nabijaczleweli closed 8 years ago

nabijaczleweli commented 8 years ago

You could use TravisCI, which is trivial to set up. I think the following .travis.yml would suffice:

sudo: false
language: cpp
compiler:
  - gcc
  - clang

script: make
Zorgatone commented 8 years ago

That would see if it builds, but of course won't be able to run the tests :stuck_out_tongue_closed_eyes:

Still better than nothing, right?

nabijaczleweli commented 8 years ago

You could echo -e "XXXXXXXWSAD WSAD \x1b[A\x1b[B\x1b[C\x1b[D\x1bXXXX" | ./test, in theory, but it hangs on non-blocking input

Zorgatone commented 8 years ago

Anyway you won't "see" the terminal, that's the visual part that would need testing. So this part can't be automated. The build part can at least

nabijaczleweli commented 8 years ago

You can download and pipe the build output through your terminal after the tests, though (as much as non-automated that is)

Zorgatone commented 8 years ago

That's what I meant by non-automated :sweat_smile:

nabijaczleweli commented 8 years ago

You could, also, redirect the output to a file and then compare the output, as horrible to maintain as that might be.

Zorgatone commented 8 years ago

@nabijaczleweli commented on 20 nov 2015, 14:15 CET:

You could, also, redirect the output to a file and then compare the output, as horrible to maintain as that might be.

LOL

refi64 commented 8 years ago

@nabijaczleweli Well, you'd be surprised how many people do that!

nabijaczleweli commented 8 years ago

I know, it's just very implementation-dependent, and that's just bad

nabijaczleweli commented 8 years ago

@tapio plz

nabijaczleweli commented 8 years ago

You could, actually, also autoupdate the docs with this