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:
Daniel Verkamp 2015-11-04 11:02:40 -07:00
parent 3677f46af8
commit 555a3d85c6
2 changed files with 25 additions and 0 deletions

14
.travis.yml Normal file
View 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
View 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