build: add Travis CI integration
Use the container-based travis-ci.org infrastructure to run only the unit tests. Change-Id: I4f7d011edb07341a668fa6fea495f6eb2a9c029b Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
3677f46af8
commit
555a3d85c6
14
.travis.yml
Normal file
14
.travis.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
language: c
|
||||||
|
|
||||||
|
compiler:
|
||||||
|
- gcc
|
||||||
|
- clang
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libcunit1-dev
|
||||||
|
|
||||||
|
script: ./unittest.sh
|
11
unittest.sh
Executable file
11
unittest.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
make -C test/lib/nvme/unit
|
||||||
|
|
||||||
|
test/lib/nvme/unit/nvme_c/nvme_ut
|
||||||
|
test/lib/nvme/unit/nvme_ctrlr_c/nvme_ctrlr_ut
|
||||||
|
test/lib/nvme/unit/nvme_ctrlr_cmd_c/nvme_ctrlr_cmd_ut
|
||||||
|
test/lib/nvme/unit/nvme_ns_cmd_c/nvme_ns_cmd_ut
|
||||||
|
test/lib/nvme/unit/nvme_qpair_c/nvme_qpair_ut
|
Loading…
Reference in New Issue
Block a user