Skip to contentSkip to conversation

ndctl: enable 'travis-ci'

PATCH Superseded Vishal Verma 1 participant 1 message Mar 27, 2019 libnvdimm: non-volatile memory device

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

PATCH 1/1 ndctl: enable 'travis-ci'

Add a .travis.yml config to enable Travis CI. Also add the Travis CI status 'badge' to README.md

For now, this only does a compile test. It can be built upon in the future to do more runtime testing. Since the travis environment uses Ubuntu, this is useful regardless, as it will immediately catch any build failures in an Ubuntu environment.

---
 .travis.yml | 23 +++++++++++++++++++++++
 README.md   |  2 ++
 2 files changed, 25 insertions(+)
 create mode 100644 .travis.yml
.travis.yml new file +23 -0
new file mode 100644
index 0000000..eb0c665
@@ -0,0 +1,23 @@
+dist: xenial
+language: c
+sudo: required
+ccache: ccache
+
+git:
+  depth: 5
+  quiet: true
+
+before_install:
+  - sudo apt-get update -qq
+  - sudo apt-get install -qq --no-install-recommends -y systemd dh-systemd libkmod2 libkmod-dev libudev1 libudev-dev keyutils libkeyutils-dev libjson-c-dev libuuid1 asciidoctor jq kmod dracut build-essential git-core libelf-dev asciidoc binutils-dev
+  - sudo apt-get build-dep linux-image-$(uname -r)
+
+install:
+  - ./autogen.sh
+  - ./configure CFLAGS='-g -O2' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
+  - make -j$(nproc --all)
+  - sudo make install
+
+jobs:
+  include:
+      script: true
README.md +2 -0
index 7c420d5..d2fe874 100644
@@ -1,4 +1,6 @@
 # ndctl
+[![Build Status](https://travis-ci.org/stellarhopper/ndctl.svg?branch=master)](https://travis-ci.org/stellarhopper/ndctl)
+
 Utility library for managing the libnvdimm (non-volatile memory device)
 sub-system in the Linux kernel
   
Signature · 6 lines
2.20.1

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm