summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorBui Nguyen Quoc Thanh <49302843+thanhbnq@users.noreply.github.com>2019-06-11 09:32:15 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2019-06-11 11:32:15 +0900
commitb6bc0006c0a51d580f075100acb3570f5492c370 (patch)
tree3d44fd4fda9e30977bd6f3e851293bec113a85ec /.travis.yml
parentae53c548afdfc05b37af730045661a4f803fb3e0 (diff)
downloadDLT-daemon-b6bc0006c0a51d580f075100acb3570f5492c370.tar.gz
Travis CI: Run unit test (#132)
To do more testing on Travis CI, a script is added to run all unit tests which exists under tests directory. In case there is any failure in gtest suite, Travis testing script will exit immediately. Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com> Signed-off-by: Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 82f9c3f..e5edc5e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,7 +2,12 @@ language: c
compiler: gcc
-script: cmake -DWITH_DLT_TESTS=ON -DWITH_TESTSCRIPTS=ON -DWITH_DLT_UNIT_TESTS=ON -DWITH_SYSTEMD=ON -DWITH_SYSTEMD_JOURNAL=ON CMakeLists.txt && make && ./src/tests/dlt-test-user
+script:
+ - cmake -DWITH_DLT_TESTS=ON -DWITH_TESTSCRIPTS=ON -DWITH_DLT_UNIT_TESTS=ON -DWITH_SYSTEMD=ON -DWITH_SYSTEMD_JOURNAL=ON CMakeLists.txt
+ - make
+ - sudo make install
+ - ./.travis/gtest_dlt_all.sh
+ - ./src/tests/dlt-test-user
addons:
apt: