Commit Graph

41 Commits

Author SHA1 Message Date
Vadim Zeitlin
372e919a45 Debug expect script used for Firebird configuration
Try to understand why setting the SYSDBA password suddenly doesn't work
any longer.
2020-10-11 00:44:12 +02:00
Vadim Zeitlin
53a1a18ccc Enable -Werror for Travis CI builds too
This needs to be done explicitly now, since the changes of c6ed5f70
(Don't use -Werror unconditionally when building SOCI, 2020-06-05).
2020-10-10 23:36:44 +02:00
Vadim Zeitlin
84fed32d0b Refactor Travis CI build scripts to reuse common options
Define SOCI_DEFAULT_CMAKE_OPTIONS once and use it in almost all builds
instead of repeating the same options many times everywhere.

For the remaining build (Valgrind) still reuse a couple of options which
it has in common with the other ones.
2020-10-10 23:36:40 +02:00
Vadim Zeitlin
457ec97eec Suppress reports about memory leaks in PostgreSQL ODBC test
Unfortunately we don't get any information about these leaks, the entire
report looks like this:

==6706==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 24 byte(s) in 1 object(s) allocated from:

    #0 0x7f6473f80602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x7f646f89ba82  (/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so+0x1ba82)

Indirect leak of 25 byte(s) in 1 object(s) allocated from:

    #0 0x7f6473f80602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x7f646f89ba9a  (/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so+0x1ba9a)

SUMMARY: AddressSanitizer: 49 byte(s) leaked in 2 allocation(s).

So we have no choice but to suppress all leaks from psqlodbca.so to let
the tests to pass on Travis CI.
2020-03-29 16:00:18 +02:00
Vadim Zeitlin
f032c2a695 Disable even more leaks in DB/2 tests on Travis CI
Unfortunately we don't get any real information about these leaks, the
entire report is

==10667==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 176 byte(s) in 1 object(s) allocated from:
    #0 0x7ff24b649602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x7ff23f0ef551  (<unknown module>)

Indirect leak of 744 byte(s) in 3 object(s) allocated from:
    #0 0x7ff24b649602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x7ff23f0ef551  (<unknown module>)

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x7ff24b649602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x7ff23f456d89  (<unknown module>)

So we can only disable leaks coming from libasan.so to suppress them
which, of course, risks hiding any other leaks too. The only way to
check for them is to check that the count of suppressions in libasan.so
doesn't increase beyond 5.
2020-03-29 16:00:18 +02:00
Vadim Zeitlin
c24601a3a8 Stop running MySQL ODBC tests on Travis CI
MySQL ODBC driver is not available in Ubuntu Xenial 16.04 any longer.
2020-03-29 16:00:18 +02:00
Vadim Zeitlin
96dc0207a1 Suppress DB/2 memory leak report in Travis CI builds
This leak is unavoidable, so just suppress it.
2020-03-29 15:59:44 +02:00
Mateusz Łoskot
6dcfe530f2 release.sh: Add git hash to version in CHANGES 2019-10-25 23:29:10 +02:00
Mateusz Łoskot
23cceccc89 releas.sh: include tests in archie [ci skip] 2019-10-25 22:43:18 +02:00
Mateusz Łoskot
186266a70c Delete release branch checked out for archiving [ci skip] 2019-10-25 22:39:16 +02:00
Mateusz Łoskot
044629c96c [travis] Run release.sh as part of job building empty backend [skip appveyor]
If TRAVIS_BRANCH matches release/X.Y, then the once the Travs CI job
completes building the empty, it also does
- run release.sh to generate source archive for soci-X.Y.Z
- unpacks the archive
- runs a minimal test build of the source archive,
  equivalent to the main build run earlier by the job.

The purpose is to have a minimal procedure verifying the source code
archives generated for release.
2019-10-06 23:01:59 +02:00
Mateusz Łoskot
bea818f967 Fix release.sh to abort when Python venv is not ready 2019-10-06 23:01:59 +02:00
Mateusz Łoskot
e6ec2b3df2 Make release.sh executable [ci skip] 2019-10-06 21:23:53 +02:00
Mateusz Łoskot
b57275399e Fix handling of release candidate number in release.sh [ci skip] 2019-10-06 20:46:55 +02:00
Mateusz Łoskot
24b21d0d9f Update release.sh with handling of RC numbers [ci skip]
Update RELEASING.md guide about tagging.
2019-10-05 18:56:47 +02:00
Mateusz Łoskot
3ef8f87f11 release.sh: Add support for building release candidate packages [ci skip]
Remove automatic branching off of master as release/X.Y,
instead expect and require existing release branch.

Update RELEASING.md about use of the release.sh script.
2019-10-05 12:27:38 +02:00
Mateusz Łoskot
13995eb944 Add scripts/release.sh helper to build release archives [ci skip] 2019-10-04 23:59:54 +02:00
Mateusz Łoskot
d581cf49e4 Set CMAKE_CXX_STANDARD with interaction with SOCI_CXX11 (#758)
Add minimal Travis CI job with CMAKE_CXX_STANDARD=11.

Closes #752
2019-10-02 11:13:50 +02:00
Mateusz Łoskot
02a5cae2c5 Rename SOCI_CXX_C11 to SOCI_CXX11 (#757)
This change was discussed and suggested in this thread of comments:
https://github.com/SOCI/soci/pull/755#discussion_r329550806
2019-09-30 20:58:57 +02:00
Mateusz Łoskot
6d21880ae5 [travisci] Disable ODBC backend due to Valgrind issues 2019-09-21 23:55:43 +02:00
Mateusz Łoskot
3256637bd8 Switch Travis CI to Ubuntu Trusty (#575)
Use CMake installed from Trusty packages.
Corrext Firebird post-installation steps to set password correctly.
Grant MySQL privileges to travis user explicitly (see travis-ci/travis-ci#8331).

Allow valgrind job to fail:
- ODBC backend tests are failing with valgrind.
- Turns out on Trusty, ODBC is enabled by default because all client libraries are available.
2019-09-21 23:10:50 +02:00
Mateusz Łoskot
1fd551f802 Remove changelog.sh script (updates 64ce5ef8) [ci skip] 2019-09-20 18:11:38 +02:00
Mateusz Łoskot
1f2343e328 [travis] Switch to Vincit/travis-oracledb-xe installer (#727)
Source: https://github.com/Vincit/travis-oracledb-xe
Author of the instaler, @elhigu, received permission from Oracle
to release this installer for use with Travis CI and others:
https://github.com/wnameless/docker-oracle-xe-11g/issues/118#issuecomment-473227959

Switch from apt-fast to apt-get.
Due to issues with certificate and/or keyserver,
installation of apt-fast has often been failing.
2019-04-14 00:12:14 +02:00
Mateusz Loskot
56f5b81b2b [travis] Install CMake 3.11
Remove check_include_files from FindODBC.cmake module -
it is hard to get check_include_files right, even possible
it should not be used in Find*.cmake.

[skip appveyor]
2018-05-08 01:29:11 +02:00
Mateusz Łoskot
79e222e3c2 [Travis] Switch to latest Oracle downloader v2.0.3
The new release handles new Oracle login form.
2017-10-31 09:28:08 +01:00
Mateusz Łoskot
3992cd8f6b [Travis] Try travis-oracle downloader hotfix
https://github.com/cbandy/travis-oracle/issues/23#issuecomment-340160184
2017-10-30 11:17:53 +01:00
Mateusz Łoskot
958f1b0102 [Travis] Use only ORACLE_LOGIN_userid and ORACLE_LOGIN_pass
Remove previously used env variables to avoid old/new clash.
2017-10-23 21:06:56 +02:00
Mateusz Łoskot
f03569ffee [Travis] Oracle has changed login form
Trying new field names as per https://github.com/cbandy/travis-oracle/issues/23
2017-10-23 19:11:40 +02:00
Mateusz Loskot
643853322b Add missing -DWITH_POSTGRESQL=ON to scripts\build.bat
[ci skip]
2017-09-26 00:03:34 +02:00
Mateusz Loskot
a35851478e Complete scripts\built.bat with basic CMake options.
Script can copied and refactored as scripts\built.sh for Unix.

Closes #41
2017-09-25 22:25:54 +02:00
Mateusz Loskot
d90a7acfc3 [docs] Fix CMake options for SQLite 3
[ci skip]
2017-09-25 22:18:02 +02:00
Mateusz Loskot
9613680439 Add changelog.sh utility to generate CHANGELOG.md from GitHub
[ci skip]
2017-09-23 23:20:01 +02:00
Mateusz Loskot
92de7a3878 [Vagrant] Fix bach if. Silence wget. Add logging.
[ci skip]
2017-09-20 00:42:11 +02:00
Mateusz Loskot
6b95311799 [Vagrant] Update setup with primary VM and optionals.
Add URL of db2cli driver package, download and install
automatically without manual intervention.

[ci skip]
2017-09-20 00:33:00 +02:00
Mateusz Loskot
275965736c Add CMake options to disable/enable individual backends.
[ci skip]
2017-09-18 23:04:48 +02:00
Mateusz Loskot
cba05c7028 Add build.bat for convenience of Visual Studio users
Allows to configure with Visual Studio 2017 for 32 and 64 bit.
(run build.bat 32 or build.bat 64).

[ci skip]
2017-09-18 22:55:29 +02:00
Mateusz Loskot
0cadedaf53 Enable Oracle builds for pull requests
Follow-up for 93e844d027 reverting #584
2017-09-14 23:03:42 +02:00
Mateusz Loskot
93e844d027 [Travis] Update Oracle installation setup 2017-09-14 22:32:53 +02:00
Vadim Zeitlin
023f4df038 Skip running Oracle tests for PR builds on Travis CI
This doesn't work currently because Oracle installation requires access
to secret environment variables which are unavailable for the PR builds
for the security purposes, so skip trying to do it to at least avoid
failing all PR builds.

Closes #584.
2017-09-14 17:23:56 +02:00
Mateusz Loskot
c3b943c87c Restore Oracle build job on Travis CI
Clones and uses scripts to install Oracle Database XE (64-bit)
on Travis CI from https://github.com/cbandy/travis-oracle.
Switch Oracle backend build from 32-bit to 64-bit.
Closes #554
2017-09-14 01:23:12 +02:00
Mateusz Loskot
d38b21ca67 Move directory /bin to /scripts
Move directory /bin/ci to /scripts/travis
2017-09-12 22:54:19 +02:00