From: Vishal Verma <vishal.l.verma@intel.com>
To: linux-nvdimm@lists.01.org
Subject: [ndctl PATCH] ndctl: enable 'travis-ci'
Date: Wed, 27 Mar 2019 14:26:54 -0600 [thread overview]
Message-ID: <20190327202654.20866-1-vishal.l.verma@intel.com> (raw)
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.
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
---
.travis.yml | 23 +++++++++++++++++++++++
README.md | 2 ++
2 files changed, 25 insertions(+)
create mode 100644 .travis.yml
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..eb0c665
--- /dev/null
+++ b/.travis.yml
@@ -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
diff --git a/README.md b/README.md
index 7c420d5..d2fe874 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,6 @@
# ndctl
+[](https://travis-ci.org/stellarhopper/ndctl)
+
Utility library for managing the libnvdimm (non-volatile memory device)
sub-system in the Linux kernel
--
2.20.1
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
reply other threads:[~2019-03-27 20:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190327202654.20866-1-vishal.l.verma@intel.com \
--to=vishal.l.verma@intel.com \
--cc=linux-nvdimm@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).