diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..e1bd940a3997ba4033a19462d291b4f719901b49 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +language: cpp +cache: + directories: + - $HOME/.ccache + - $HOME/.cache/pip + - $TRAVIS_BUILD_DIR/build/third_party +sudo: required +dist: trusty +os: + - linux +addons: + apt: + packages: + - gcc-4.8 + - g++-4.8 + - git + - python + - python-pip + - python2.7-dev + - python-wheel + - clang-format-3.8 + - ccache +notifications: + email: + on_success: change + on_failure: always diff --git a/CMakeLists.txt b/CMakeLists.txt index b4e6b67b22386444418d8f17d08311de87096c10..064e6b2076302eb72c6d02669a4de1a8b6be729a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,3 +37,7 @@ add_executable(vl_test ${PROJECT_SOURCE_DIR}/visualdl/backend/utils/filesystem.h ) target_link_libraries(vl_test storage im gtest glog protobuf gflags pthread) + +enable_testing () + +add_test(NAME vstest COMMAND vl_test)