Skip to content

Commit

Permalink
Use 0.7.2, fix test_package, reference github issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jcar87 committed Feb 9, 2024
1 parent 5c8bc3c commit 917bbf5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
6 changes: 3 additions & 3 deletions recipes/influxdb-cxx/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sources:
"0.7.1":
url: "https://github.com/offa/influxdb-cxx/archive/refs/tags/v0.7.1.tar.gz"
sha256: "6b111fc9484dd0a716aa0ef954f117babb781903149ecff409b0da794da50993"
"0.7.2":
url: "https://github.com/offa/influxdb-cxx/archive/refs/tags/v0.7.2.tar.gz"
sha256: "951e067df5731cb23b72f53fcbea8e56920819c6191b6885ea180168eb1950d9"
1 change: 1 addition & 0 deletions recipes/influxdb-cxx/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def generate(self):
tc.cache_variables["INFLUXCXX_TESTING"] = False
tc.cache_variables["INFLUXCXX_WITH_BOOST"] = self.options.boost
if self.options.shared:
# See https://github.com/offa/influxdb-cxx/issues/194
tc.preprocessor_definitions["InfluxDB_EXPORTS"] = 1
tc.generate()
deps = CMakeDeps(self)
Expand Down
12 changes: 10 additions & 2 deletions recipes/influxdb-cxx/all/test_package/test_package.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#include <InfluxDBFactory.h>
#include <InfluxDBException.h>
#include <iostream>

int main()
{
auto influxdb = influxdb::InfluxDBFactory::Get("http://localhost:8086?db=test");
influxdb->addGlobalTag("test", "value");
try {
auto influxdb = influxdb::InfluxDBFactory::Get("xyz://foobar");
}
catch(influxdb::InfluxDBException& e) {

}

std::cout << "Influxdb-cxx test package successful\n";
return 0;
}
2 changes: 1 addition & 1 deletion recipes/influxdb-cxx/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
versions:
"0.7.1":
"0.7.2":
folder: all

0 comments on commit 917bbf5

Please sign in to comment.