From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140057.outbound.protection.outlook.com [40.107.14.57]) by dpdk.org (Postfix) with ESMTP id AB1B85F51 for ; Thu, 24 Jan 2019 20:26:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iLpn8H/rz0nnxFaiNr+Sd64hreZRGLJl/2pVNEGMBNc=; b=KJ94djMGHzELHtu3UaZUDSyJHVjnenxPh0GptBf/JPmUXAXA0ZKmPf2Ar5Z1MtotyCn6SmZHGfIM4qt0RWdjp0uoE7rDNlToDnMYsmG6CE6IHKBBSSuMSM4GQ3IFF6I1QXgkS4MWxVq8C2RLHNX/aGrwdzr6zDoV0PRB9kKbg48= Received: from AM6PR08MB3672.eurprd08.prod.outlook.com (20.177.115.76) by AM6PR08MB3782.eurprd08.prod.outlook.com (20.178.89.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.29; Thu, 24 Jan 2019 19:26:49 +0000 Received: from AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::9120:87d6:b17c:fadd]) by AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::9120:87d6:b17c:fadd%3]) with mapi id 15.20.1558.016; Thu, 24 Jan 2019 19:26:49 +0000 From: Honnappa Nagarahalli To: Michael Santana , "dev@dpdk.org" CC: Aaron Conole , Bruce Richardson , "thomas@monjalon.net" , Ferruh Yigit , nd , Honnappa Nagarahalli , nd Thread-Topic: [dpdk-dev] [PATCH] Introduce travis builds for github repositories Thread-Index: AQHUs2gDEL505ZqA7k+syfeqJMmA1aW+zk/Q Date: Thu, 24 Jan 2019 19:26:49 +0000 Message-ID: References: <20190123220714.20763-1-msantana@redhat.com> In-Reply-To: <20190123220714.20763-1-msantana@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR08MB3782; 6:dulcZHpch44WSY1ACqVp0cMhVRvLgOkUSx3zXb8Qv3IbZg4FOFakRUkYHeRgRJKrxGknWsO4u8UuSrYVc0sc63qcoWvuhRBFiF6WQSap4E7nniFySnZPfDzSGywXawhh55rEb9Ue3snUu8tzOfj3GIdO5lUdr3PNz3t7S6CVw58eblAPIjlWy42iRt0uXk6dyVSyF5Ug610oM6YiBtaL0pITQIrZfXVUBVOGzSqFuNNCmabIrXhxrJ3vbCbNCVBc2WEphyv/fmYf3pr62VzN4tI+6UKf3ps1WN1jsCMpOO4TewhtZuRu3BfLWpiaZCZhu6WDZTSOGvzatYpUQg35RaYvUQfWCQjDU3yJWIx3nC9uujyvVHSqxiQ8C4O774HMgeBSbjHGleo0BZVMxGRCflS75UeoxpJY83ubnOnhwaT0y9hsvTn+BB4qrZvMGxvcsFtZzs4dAhSz9oWO8e9sAw==; 5:7aUwvI4k7qexz1QKzgCjGiJxtuO0iffFa5LHF8TD97uFS1/z3XVDskGuAsh0Ku7jAGBgudeuxqnZlXppl5t6TJUyYBGQdT4tx6mWHJh5PF+T99c5nk5yoaT8zukwtsIffjqQFHYVIRNSBeFTSuSNXB0qe0+sxZT0oWXFMBxNLx7N7vIFI44e8LwsDgG8tci0XRYDp+TSl5c8B/3advnTUA==; 7:23wwoMlBgVV/Wpfy08tBOa2s5xqZASUFBSGCNrpIzUqOI5gUoTj7+i3mdGTREaUEmBvEwh1G0oAs0b31DZTNak9ibfPkddFBu/bby+D2d/00WdfqVv96X3aB335EHt2jayp8sgewo0+i14zSQ95piQ== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: e60f515f-e9de-4547-ee4b-08d68231e350 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR08MB3782; x-ms-traffictypediagnostic: AM6PR08MB3782: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 0927AA37C7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(396003)(366004)(136003)(39860400002)(189003)(199004)(52254002)(110136005)(106356001)(97736004)(256004)(6436002)(102836004)(4326008)(76176011)(54906003)(14444005)(8676002)(68736007)(66066001)(6306002)(6506007)(105586002)(81166006)(26005)(81156014)(8936002)(9686003)(7696005)(316002)(55016002)(25786009)(71200400001)(71190400001)(478600001)(2906002)(6246003)(99286004)(186003)(86362001)(72206003)(2501003)(74316002)(19273905006)(476003)(6116002)(14454004)(305945005)(53936002)(7736002)(229853002)(446003)(486006)(11346002)(3846002)(33656002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB3782; H:AM6PR08MB3672.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: AnH5ZWPEA98ks9H+EYNeAY5XGBvYF9KSTxr9RfFNfzWvjqYsZeY/BdCryjxTL95o6K0yAPY25i046LUyzHB5CEWXFiWnzyO8CkFCo9Y4iRdLh1QcHFlEJbK5s6/fjo9/rgo5xSx0ymty/jE8Zor9Fu7tB3ELNAo/DKN1YB0ECzARYiifR3T1r9B7H3k9yl6huc5KiC/O0sYbscwXS5I1A78MawTFBCJlC93a/XB7T+eSCt2QDLY3HeQr+WeJBBk30w3sd0sm2Pzxj47dUb7HHhw7DyVEcKQrDWubFu5gXLS6pNQK+3YuXjuT1LNx2raj3Z7f1PhozHEXKIvA51yOwGZc3WN274xsX0OHMBc063nQBw/PpoDb2ICxx3k3akUpav+w8Ac3zEw79SZORvVsfi/XxC74lYo3zfTBzOzhxZk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: e60f515f-e9de-4547-ee4b-08d68231e350 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2019 19:26:49.7306 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3782 Subject: Re: [dpdk-dev] [PATCH] Introduce travis builds for github repositories X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2019 19:26:51 -0000 >=20 > GitHub is a service used by developers to store repositories. GitHub > provides service integrations that allow 3rd party services to access > developer repositories and perform actions. One of these services is Tra= vis- > CI, a simple continuous integration platform. >=20 > This is a simple initial implementation of a travis build for the DPDK pr= oject. > It doesn't require any changes from individual developers to enable, but = will > allow those developers who opt-in to GitHub and the travis service to get > automatic builds for every push they make. >=20 > Additionally, the travis service will send an email to the test-report li= st > informing anyone interested in the automated build (including a result). >=20 > Signed-off-by: Aaron Conole > Signed-off-by: Michael Santana > --- > .ci/linux-build.sh | 34 +++++++++++++++++++++++++ > .ci/linux-setup.sh | 3 +++ > .travis.yml | 39 +++++++++++++++++++++++++++++ > MAINTAINERS | 6 +++++ > doc/guides/contributing/patches.rst | 3 +++ > 5 files changed, 85 insertions(+) > create mode 100755 .ci/linux-build.sh > create mode 100755 .ci/linux-setup.sh > create mode 100644 .travis.yml >=20 > diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh new file mode 100755= index > 0000000000..2cfaa05058 > --- /dev/null > +++ b/.ci/linux-build.sh > @@ -0,0 +1,34 @@ > +#!/bin/bash > + > +# check for whether we're clang or gcc > +# setup the right options depending on the environment variables # run > +the build > + > +# Just used for the 'classic' configuration system (ie: make) > +set_conf() { > + c=3D"$1/.config" > + shift > + > + if grep -q "$1" "$c"; then > + sed -i "s:^$1=3D.*$:$1=3D$2:g" $c > + else > + echo $1=3D$2 >> "$c" > + fi > +} > + > + > +if [ "${NINJABUILD}" =3D=3D "1" ]; then > + meson build > + ninja -C build > +else > + make config T=3Dx86_64-native-linuxapp-${CC} Adding Arm builds would be helpful. > + if [ "${SHARED}" =3D=3D "1" ]; then > + set_conf build CONFIG_RTE_BUILD_SHARED_LIB y > + fi > + > + if [ "${KERNEL}" =3D=3D "1" ]; then > + echo Unsupported kernel builds at the moment > + fi > + > + make all > +fi > diff --git a/.ci/linux-setup.sh b/.ci/linux-setup.sh new file mode 100755= index > 0000000000..6f9849cb94 > --- /dev/null > +++ b/.ci/linux-setup.sh > @@ -0,0 +1,3 @@ > +#!/bin/sh > + > +python3.5 -m pip install --upgrade meson --user > diff --git a/.travis.yml b/.travis.yml > new file mode 100644 > index 0000000000..432d6c9c6c > --- /dev/null > +++ b/.travis.yml > @@ -0,0 +1,39 @@ > +language: c > +compiler: > + - gcc > + - clang > + > +os: > + - linux > + > +addons: > + apt: > + sources: > + - deadsnakes #source for python 3.5 > + - sourceline: 'ppa:mstipicevic/ninja-build-1-7-2' > + packages: > + - libnuma-dev > + - linux-headers-$(uname -r) > + - python3.5 > + - python3-pip > + - ninja-build > + > +before_install: ./.ci/${TRAVIS_OS_NAME}-setup.sh > + > +sudo: false > + > +env: > + - SHARED=3D1 > + - KERNEL=3D1 > + - NINJABUILD=3D1 > + > +matrix: > + include: > + - compiler: clang > + > +script: ./.ci/${TRAVIS_OS_NAME}-build.sh > + > +notifications: > + email: > + recipients: > + - test-report@dpdk.org > diff --git a/MAINTAINERS b/MAINTAINERS > index 66104405e5..14a7bf1284 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -119,6 +119,12 @@ F: config/rte_config.h > F: buildtools/gen-pmdinfo-cfile.sh > F: buildtools/symlink-drivers-solibs.sh >=20 > +Public CI > +M: Aaron Conole > +M: Michael Santana > +F: .travis.yml > +F: .ci/ > + > ABI versioning > M: Neil Horman > F: lib/librte_compat/ > diff --git a/doc/guides/contributing/patches.rst > b/doc/guides/contributing/patches.rst > index a64bb03683..745a11a67a 100644 > --- a/doc/guides/contributing/patches.rst > +++ b/doc/guides/contributing/patches.rst > @@ -32,6 +32,9 @@ The mailing list for DPDK development is > `dev@dpdk.org `register for the mailing list `_ in = order > to submit patches. > It is also worth registering for the DPDK `Patchwork > `_ >=20 > +If you are using the GitHub service, you can link your repository to > +the ``travis-ci.org`` build service. When you push patches to your > repository, the travis service will automatically build your changes. > + > The development process requires some familiarity with the ``git`` versi= on > control system. > Refer to the `Pro Git Book `_ for further > information. >=20 > -- > 2.19.1