From patchwork Wed Mar 27 20:26:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Verma, Vishal L" X-Patchwork-Id: 10873923 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 722D217E0 for ; Wed, 27 Mar 2019 20:27:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57C09289F6 for ; Wed, 27 Mar 2019 20:27:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AB2028A5F; Wed, 27 Mar 2019 20:27:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C1B3A289F6 for ; Wed, 27 Mar 2019 20:27:00 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 610E9211E8310; Wed, 27 Mar 2019 13:27:00 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=vishal.l.verma@intel.com; receiver=linux-nvdimm@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5540F2194EB70 for ; Wed, 27 Mar 2019 13:26:58 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2019 13:26:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,277,1549958400"; d="scan'208";a="331287322" Received: from vverma7-desk1.lm.intel.com ([10.232.112.185]) by fmsmga006.fm.intel.com with ESMTP; 27 Mar 2019 13:26:58 -0700 From: Vishal Verma To: Subject: [ndctl PATCH] ndctl: enable 'travis-ci' Date: Wed, 27 Mar 2019 14:26:54 -0600 Message-Id: <20190327202654.20866-1-vishal.l.verma@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- .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 +[![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