New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable automated testing with Travis CI #3
Conversation
Autotools is unable to find it for some reason
@wmcbrine take a look. It works like this - |
Fetch ./configure move from upstream
@wmcbrine how is it going? Maybe add somebody else to to help with the project? |
Can you explain more about how this would be useful? I know I see those badges all over GitHub, but I haven't really seen the point of them. I personally don't commit non-compiling code to GitHub. |
Test at CI and usually for code that compiles, but may behave differently. CI scripts also help to ensure that build commands given in documentation actually work, so people can check their dependencies and other stuff if build works in CI, but fails on their system. |
@techtonik Can you please add more CI tasks to compile with all reasonable combinations (DLL, WIDE, UNICODE), maybe with clang, too and additional cross-compile the wincon port with mingw-w64? Can you also add compilation with osx environment?
@wmcbrine Using CI is especially useful to check if a code works in any environment. It is good to check all these beforehand but if you change something to the pdcurses folder for use in sdl2, for example you'll immediately check if the code works on SDL2 (likely on GNU/Linux), but it may break compilation for wincon/x11/whatever - checking all these environments with multiple compilers and all combinations of supported make variables before doing the commit, too, is nice but some people may consider this a waste of your important time if a CI environment can do this for you. A nice side effect is that you can register a hook for GitHub which results in all PR be automatically checked (with all environments and possible tests run). I bet not anyone that does a PR tested with all compilers for all ports with all options and if GitHub shows the status and adds a link for the detailed test results (the details are everything that is done by the CI) @techtonik Can you also add artifacts to Travis-CI allowing download of pre-build CI binaries (I'm not sure if/how Travis handles these)? |
I don't know if I have time for this. Sorry. :( |
For an updated effort which includes all ports (but SDL1, currently), most on Travis, some on Appveyor see Bill-Gray/PDCursesMod#90 |
Closing this as backporting Bill-Gray/PDCursesMod#90 is a much better idea. ;) |
Here is how automated Travis build look like:
https://travis-ci.org/techtonik/PDCurses/builds
If merged, it will allow anyone to test Linux builds online in their PDCurses clone.