-
Notifications
You must be signed in to change notification settings - Fork 475
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
Add ODBC support to Travis-CI configuration #49
Comments
I don't know anything about Travis so am unable to do this myself but I'd very much like to have it as checking things in without the unit tests is an acutely uncomfortable experience. TIA! |
@vadz Great you like the idea. No problem, I'll take of Travis setup. What OS do you use for ODBC? On Travis, we have Linux VM. If you use Linux too, do you have any preference of ODBC implementation and drivers? BTW, some time ago, I asked on SO: What are the functional differences between iODBC and unixODBC? |
I'm testing mostly under Windows and Linux but we also support Solaris. We use unixODBC under Linux because I had some problems (the details of which I unfortunately forgot by now but I think it was related to MS SQL/freeTDS...) with iODBC and also because I found, just as indicated by the answer to your SO question, that unixODBC was more widespread. |
Great, then I'll install unixODBC which I've used myself too. I've never used iODBC. |
@vadz Travis installs unixODBC and builds ODBC backends now: https://travis-ci.org/SOCI/soci/builds/4569916 It also tries to run the ODBC tests, but they are failing. I think it should be possible to configure them with FILEDSN to connect to SQLite3, PostgreSQL and MySQL which we all have available on Travis. AFAIK, there are ODBC drivers available for these database on Linux. All the connection settings has to be put into .dsn files we manage in git in src/backends/odbc/test. I'll try to configure it later. |
Yay! Travis is now executing the ODBC tests against PostgreSQL: https://travis-ci.org/SOCI/soci/builds/4618826 So, @vadz, you've got a minimal safety net :) The last build log may be confusing, because it says the built passed and is green, but it consists of this:
Simply, the ODBC test programs |
Update
.travis.yml
to install and configure ODBC for Linux, so the ODBC backend is built by CI machine.It may also be worth to request CMake to configure ODBC tests, so we have minimal test coverage for this backend.
The text was updated successfully, but these errors were encountered: