Commit graph

9 commits

Author SHA1 Message Date
Calin Culianu
30d87053fe Revert "Windows Travis CI: Try and install/use pkg-config to autodetect libzmq"
This reverts commit 10b07efb31.

It didn't work -- going back to the old bad way.
2021-02-07 16:16:27 +02:00
Calin Culianu
10b07efb31
Windows Travis CI: Try and install/use pkg-config to autodetect libzmq
Hopefully this works... if not, we revert
2021-02-07 16:05:44 +02:00
Calin Culianu
bcf36db12e
Fixed include path on windows travis CI build
Oops.
2021-02-07 16:01:18 +02:00
Calin Culianu
db68fdee63
Misc CI fixups
- Get windows travis CI to actually see libzmq
- run "Fulcrum -v" in travis CI to see the libs it linked against before
  running tests.
- Install jemalloc on travis mac build
- Install jemalloc on travis linux build
2021-02-07 15:46:40 +02:00
Calin Culianu
69a83b93e1
Fixed Windows segfault-before-main if comiled with -DENABLE_TESTS
It turns out for some reason initialization order was wrong on Windows
and ths std::map instances for registeredTests and registeredBenches
were being accessed before their construction.

In order to fix this we are using std::unique_ptr for these types and
the first time through the common "register" function we simply
construct the maps via std::make_unique<>()..

This fixes the crash-on-startup bug seen on Windows when compiling with
-DENABLE_TESTS.

We also enabled the tests on travis for windows.
2020-08-13 12:17:25 +03:00
Calin Culianu
69b48a8b1a
Added "all" keyword for --test and --bench
If compiling with -DENABLE_TESTS:

- --test all    - to run all the tests
- --bench all   - to run all the benchmarks

Also in this commit: Refactoed/redid the generic Util::keySet() and
Util::valueSet() to be able to produce any common container type from
any common map type.
2020-08-13 02:13:56 +03:00
Axel Gembe
40dd3e1d37
Travis: Build and run tests 2020-08-13 00:42:38 +07:00
Axel Gembe
10d03d7686
Travis: Add set -e to the scripts
Otherwise failing commands will not fail the script
2020-08-13 00:04:26 +07:00
Axel Gembe
33ee1d1fb7
Build: Move travis script directory to contrib 2020-01-14 00:06:00 +07:00
Renamed from travis/windows.pc.script (Browse further)