From 558c3af3608fff8ece865cf191f91a701eaa8a66 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 31 May 2016 17:48:41 -0400 Subject: [PATCH] build tools in CI (#771) build tools in CI --- .travis.yml | 6 ++++++ appveyor.yml | 4 ++++ tools/fuzz_torrent.cpp | 4 ++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a72822c88..bddeb214b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -105,6 +105,12 @@ script: fi' - cd .. + - cd tools + - 'if [ "$variant" != "" ]; then + bjam -j3 warnings-as-errors=on variant=$variant picker-debugging=on $toolset link=shared; + fi' + - cd .. + # build libtorrent separately and install it in a temporary (well known) dir # we have to do this because on linux the name of the python module is the same # as the main library, so we cannot stage them to the same directory diff --git a/appveyor.yml b/appveyor.yml index 0680984c4..a3218776b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -75,6 +75,10 @@ build_script: - cd %ROOT_DIRECTORY%\examples - b2.exe --hash warnings-as-errors=on -j2 %compiler% address-model=%model% variant=%variant% picker-debugging=on linkflags=%linkflags% include=%include% link=shared +# tools +- cd %ROOT_DIRECTORY%\tools +- b2.exe --hash warnings-as-errors=on -j2 %compiler% address-model=%model% variant=%variant% picker-debugging=on linkflags=%linkflags% include=%include% link=shared + # test - cd %ROOT_DIRECTORY%\test - b2.exe --hash -j2 warnings-as-errors=on address-model=%model% win-tests %compiler% variant=%variant% picker-debugging=on link=shared linkflags=%linkflags% include=%include% testing.execute=off diff --git a/tools/fuzz_torrent.cpp b/tools/fuzz_torrent.cpp index c1f026736..28e2b44b4 100644 --- a/tools/fuzz_torrent.cpp +++ b/tools/fuzz_torrent.cpp @@ -136,9 +136,9 @@ void print_string(std::string& output, std::string str) if (random_string) { static mt19937 random_engine(str_seed); - uniform_int_distribution d(0, 255); + uniform_int_distribution<> d(0, 255); for (int i = 0; i < int(str.size()); ++i) - str[i] = d(random_engine); + str[i] = boost::uint8_t(d(random_engine)); print_ascii_number(output, str.size()); output += ':';