FSharp.Linq.ComposableQuery icon indicating copy to clipboard operation
FSharp.Linq.ComposableQuery copied to clipboard

The Travis build is failing (for Linux/OSX)

Open dsyme opened this issue 11 years ago • 4 comments
trafficstars

See https://travis-ci.org/fsprojects/FSharp.Linq.ComposableQuery/builds

I'm not sure what the problem is, but it would be great to make sure this builds and passes tests on OSX/Linux

dsyme avatar Sep 05 '14 14:09 dsyme

Hi,

I may be missing something, but from a quick look at the log it seems that the library itself builds fine, but an attempt to build and run the tests fails because the tests use type providers to get type information from a database, and a connection string to a database providing tables of the appropriate types needs to be given. That is, it isn't clear to me that there is any OSX/Linux problem to solve here.

If there is a standard workaround for this (e.g. to say that the tests require a SQL Server DB to be configured with some schemas loaded into some tables) I'm happy to adopt it.

jamescheney avatar Sep 05 '14 18:09 jamescheney

I guess either change it to only use "build.sh Build" (so no tests run), or use "build.sh RunTests" but somehow disable the tests that need a database. The former if there are no useful tests that are database independent?

dsyme avatar Sep 05 '14 19:09 dsyme

I think there are some useful database-independent (sanity check) tests. One possibility would be to create a separate db-dependent tests project and a separate build target that builds/runs that. I don't know what travis is doing, though - build All?

jamescheney avatar Sep 06 '14 09:09 jamescheney

It's doing "build RunTests", see https://github.com/fsprojects/FSharp.Linq.ComposableQuery/blob/master/.travis.yml#L15

dsyme avatar Sep 06 '14 09:09 dsyme