Skip to content

Commit

Permalink
Makefile/travis: run offline tests in CI
Browse files Browse the repository at this point in the history
Internet is sometimes flaky in CI. Therefore, in order to avoid unit
tests from failing intermittently, don't run the cURL tests which
download files from s3.
  • Loading branch information
julianoes committed Jul 23, 2018
1 parent 4962dc5 commit 00a218b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ run_all_tests: default
run_unit_tests: default
build/default/unit_tests_runner

run_unit_tests_offline: default
build/default/unit_tests_runner --gtest_filter="-CurlTest.*"

run_integration_tests: default
build/default/integration_tests/integration_tests_runner

Expand Down
4 changes: 2 additions & 2 deletions travis-docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

make BUILD_TYPE=Debug run_unit_tests -j4
make BUILD_TYPE=Debug run_unit_tests_offline -j4
make default install
make fix_style
(cd example/takeoff_land && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make)
Expand All @@ -11,7 +11,7 @@ make fix_style
make clean
git clean -dfx

make BUILD_TYPE=Release run_unit_tests -j4
make BUILD_TYPE=Release run_unit_tests_offline -j4
make default install
make fix_style
(cd example/takeoff_land && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make)
Expand Down

0 comments on commit 00a218b

Please sign in to comment.