-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get Windows tests working & passing. (#560)
I added an appveyor.yml. This should mean I no longer have to configure appveyor in the web UI. And more of the test is set up automatically, without awkward scripting in various convoluted languages. But it also gave me the opportunity to get the tests running on Windows. And guess what? They didn't all pass! The test for asynchronous connection (using pqxx::connecting) would hang. Turns out it was completely unnecessary for libpqxx to manage blocking/nonblocking mode on the socket. So that's fixed now.
- Loading branch information
Showing
6 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: 1.0.{build} | ||
image: Visual Studio 2022 | ||
services: postgresql12 | ||
before_build: | ||
- cmd: >- | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
cmake -DBUILD_SHARED_LIBS=1 -DCMAKE_CXX_STANDARD=23 | ||
configuration: Release | ||
build: | ||
parallel: true | ||
project: libpqxx.sln | ||
test_script: | ||
- ps: >- | ||
$env:Path += ";.\src\Release;C:\Program Files\PostgreSQL\12\bin" | ||
$env:PGUSER = "postgres" | ||
$env:PGPASSWORD = "Password12!" | ||
.\test\Release\runner.exe | ||
notifications: | ||
- provider: Email | ||
subject: 'libpqxx: AppVeyor build failure' | ||
message: The libpqxx AppVeyor build has failed. | ||
on_build_success: false | ||
on_build_failure: true | ||
on_build_status_changed: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#include <pqxx/connection> | ||
#include <pqxx/transaction> | ||
|
||
#include <pqxx/internal/wait.hxx> | ||
|