diff --git a/.travis.yml b/.travis.yml index 197a7a3..a2c7783 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,12 +14,13 @@ addons: script: - mkdir build && cd build - cmake .. - - cmake --build . -- -j4 > build.log + - cmake --build . -- -j4 2> build.log + - cat build.log - cd test - ctest . -C Debug -V - + - cd .. after_failure: - - curl -s https://raw.githubusercontent.com/report-ci/scripts/master/upload.py | python - --tool gcc --input build.log + - curl -s https://raw.githubusercontent.com/report-ci/scripts/master/annotate.py | python - --tool gcc --input build.log after_script: - python <(curl -s https://raw.githubusercontent.com/report-ci/scripts/master/upload.py) \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index c45e6d1..a964961 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,6 +10,7 @@ build_script: - mkdir build && cd build - cmake .. -DBOOST_ROOT=C:\\Libraries\\boost_1_67_0 - cmake --build . > build.log + - type build.log after_build: before_build: @@ -18,8 +19,7 @@ test_script: - ctest . -C Debug -V on_failure: - - curl -s https://raw.githubusercontent.com/report-ci/scripts/master/upload.py | python - --tool msvc --input build.log - + - curl -s https://raw.githubusercontent.com/report-ci/scripts/master/annotate.py | python - --tool msvc --input build.log on_finish: - curl -s https://raw.githubusercontent.com/report-ci/scripts/master/upload.py | python \ No newline at end of file diff --git a/test/test_sys.cpp b/test/test_sys.cpp index dbd2beb..0bb445d 100644 --- a/test/test_sys.cpp +++ b/test/test_sys.cpp @@ -9,7 +9,7 @@ BOOST_AUTO_TEST_SUITE(system_suite) BOOST_AUTO_TEST_CASE(win_test) { BOOST_CHECK(true); - BOOST_REQUIRE(BOOST_IS_DEFINED(_WIN32)); + BOOST_REQUIRE(_WIN32); } #else @@ -17,7 +17,7 @@ BOOST_AUTO_TEST_CASE(win_test) BOOST_AUTO_TEST_CASE(sys_test) { BOOST_WARN_MESSAGE(BOOST_IS_DEFINED(__unix__), "System is not linux"); - BOOST_REQUIRE(!BOOST_IS_DEFINED(_WIN32)); + BOOST_REQUIRE(!_WIN32); } #endif @@ -25,7 +25,7 @@ BOOST_AUTO_TEST_CASE(sys_test) BOOST_AUTO_TEST_CASE(gen_test) { - BOOST_CHECK_MESSAGE(true, "some test would be here"); + BOOST_CHECK_MESSAGE("some test would be here"); } BOOST_AUTO_TEST_SUITE_END()