mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-19 02:27:55 +08:00
Put unixODBC under basic build / test coverage
This commit is contained in:
11
.travis.yml
11
.travis.yml
@@ -17,15 +17,17 @@ addons:
|
||||
apt:
|
||||
packages:
|
||||
- libiodbc2-dev
|
||||
- unixodbc-dev
|
||||
homebrew:
|
||||
packages:
|
||||
- libiodbc
|
||||
- unixodbc
|
||||
|
||||
before_script:
|
||||
- autoreconf -i -f -Wno-portability
|
||||
|
||||
script:
|
||||
- ./configure --disable-man --disable-silent-rules --disable-glib --with-iodbc=/usr
|
||||
- ./configure --disable-man --disable-silent-rules --disable-glib
|
||||
- make
|
||||
- ./src/util/mdb-array test/data/ASampleDatabase.accdb "Asset Items"
|
||||
- ./src/util/mdb-array test/data/nwind.mdb "Customers"
|
||||
@@ -39,4 +41,11 @@ script:
|
||||
- ./src/util/mdb-tables test/data/nwind.mdb
|
||||
- ./src/util/mdb-ver test/data/ASampleDatabase.accdb
|
||||
- ./src/util/mdb-ver test/data/nwind.mdb
|
||||
- make clean
|
||||
- ./configure --disable-man --disable-silent-rules --disable-glib --with-iodbc=/usr
|
||||
- make
|
||||
- env MDBPATH=test/data ./src/odbc/unittest
|
||||
- make clean
|
||||
- ./configure --disable-man --disable-silent-rules --disable-glib --with-unixodbc=/usr
|
||||
- make
|
||||
- env MDBPATH=test/data ./src/odbc/unittest
|
||||
|
@@ -120,6 +120,11 @@ if test "$with_unixodbc"; then
|
||||
ODBC_LIBS="-L$with_unixodbc/lib"
|
||||
CFLAGS="$CFLAGS -DUNIXODBC"
|
||||
|
||||
dnl SIZEOF_LONG_INT and HAVE_LONG_LONG are required by some versions of unixODBC
|
||||
dnl https://github.com/lurcher/unixODBC/issues/40
|
||||
AC_CHECK_SIZEOF([long int])
|
||||
AC_CHECK_TYPES([long long])
|
||||
|
||||
OLDLDFLAGS=$LDFLAGS
|
||||
LDFLAGS="$LDFLAGS $ODBC_LIBS"
|
||||
AC_CHECK_LIB(odbcinst, SQLGetPrivateProfileString,
|
||||
|
Reference in New Issue
Block a user