From patchwork Thu May 25 03:00:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 100457 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp573804qge; Wed, 24 May 2017 20:00:47 -0700 (PDT) X-Received: by 10.200.4.29 with SMTP id v29mr41171054qtg.82.1495681247343; Wed, 24 May 2017 20:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495681247; cv=none; d=google.com; s=arc-20160816; b=r8qiHGmwSF1ldPXNPfexbSYlvML03JoUaa2yxYXD3XQHtix4XSLf4mzK3tB20QaxLr PHyt9Y523qkrocm/mo9gvxBx8ldXYxRp1b6DODNwtwc7VdM+2jekEJLeN0uOSjxdXG36 7NaKhjNQ7gBkkj6WcTvJehzn78zzOiXhR6USna9+g1sOF89atE7UGuGr1nH0zpctgXXB frPS0fL3BETn3+nmAK9ow5sJO7X5u7zCjeTdPJRStt1n6Mj4LoUTe2aDvwxBJL0QEFYX hfiPsK9az6O95mB42FAKKTuXTIimNcP5f8MkKD+1bMuvOTFE71eNkaAx9Ggct3Po6DHQ Tidw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=ZGHQl+Lde0IQrTausqpg1r6TrTfw2ph18ZNkSGj0UMU=; b=YU+ENVsvnZdaWMzBDFAzf7VDyqrcV4lUJpVKbRN4VvneN+Ulh+4OZVRp0kx6KhOkNh AxcluRlIxBsbJGtn+McfrUZwkiakzazGRKARBpKA44PUrW0p2+E7sNkbBQgw1jgkG0Ja JCHGe+ZaKwFWZGRxC5yszd6/y7eWF6Wiw5E8wwoeV6X4VNfNXTBfgQYD1nfGA3JFpVO0 lMnOMqSxVlGwv136s3MKyzCN306SILqOFXnCOjN3raBb+gsFlWw/EGL6hu1fgV0zWTlF LEm9yr/S+r4jemJiZvSnO5d1f8ICEuM6ERN0gTUZD+zQ+pug1j+I+WAkHk199fR+QZWf FAYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t64si1600357qkt.145.2017.05.24.20.00.46; Wed, 24 May 2017 20:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 6254562B68; Thu, 25 May 2017 03:00:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id E05B962C1F; Thu, 25 May 2017 03:00:18 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8163F61CA5; Thu, 25 May 2017 03:00:15 +0000 (UTC) Received: from forward2m.cmail.yandex.net (forward2m.cmail.yandex.net [5.255.216.20]) by lists.linaro.org (Postfix) with ESMTPS id D244E6192F for ; Thu, 25 May 2017 03:00:13 +0000 (UTC) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [37.140.190.27]) by forward2m.cmail.yandex.net (Yandex) with ESMTP id 7BD3520C50 for ; Thu, 25 May 2017 06:00:12 +0300 (MSK) Received: from smtp2o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2o.mail.yandex.net (Yandex) with ESMTP id 391585080DC1 for ; Thu, 25 May 2017 06:00:11 +0300 (MSK) Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id BK500QRm6J-0ATqNXxE; Thu, 25 May 2017 06:00:10 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 25 May 2017 06:00:07 +0300 Message-Id: <1495681207-23742-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495681207-23742-1-git-send-email-odpbot@yandex.ru> References: <1495681207-23742-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 40 Subject: [lng-odp] [PATCH v1 1/1] travis: split build into separate stages X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Introduce separate parallel builds for checkpatch, doxygen, distcheck and plain checks. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 40 (lumag:stages) ** https://github.com/Linaro/odp/pull/40 ** Patch: https://github.com/Linaro/odp/pull/40.patch ** Base sha: ea134fe159c0d249e4bed12b7269e8236afa0262 ** Merge commit sha: 7b96c1fd8a5988d046b34742e9ba0683a9f9070e **/ .travis.yml | 133 +++++++++++++++++++++++++++++------------------------------- 1 file changed, 65 insertions(+), 68 deletions(-) diff --git a/.travis.yml b/.travis.yml index 65edfbb3..7e4735d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,65 +33,50 @@ env: # you need generated new one at https://codecov.io specific for your repo. - CODECOV_TOKEN=8e1c0fd8-62ff-411e-a79f-5839f6662c11 -matrix: - include: - - compiler: gcc - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc - env: MY_CF="-O0 -coverage" MY_LDF="--coverage" DOCOV=1 - - compiler: clang - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.8 - packages: - - clang-3.8 - - compiler: gcc - addons: +addons: apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc - env: TEST="CHECKPATCH" + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.8 + packages: + - gcc + - clang-3.8 + - automake autoconf libtool libssl-dev graphviz mscgen doxygen + - libpcap-dev +# coverity_scan: +# project: +# name: "$TRAVIS_REPO_SLUG" +# notification_email: xxxx +# build_command_prepend: "./bootstrap && ./configure --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example" +# build_command: "make" +# branch_pattern: coverity_scan + +compiler: + - gcc + - clang-3.8 -before_install: +install: - echo 1000 | sudo tee /proc/sys/vm/nr_hugepages - sudo mkdir -p /mnt/huge - sudo mount -t hugetlbfs nodev /mnt/huge - - if [ "$TEST" = "CHECKPATCH" ]; then - echo ${TRAVIS_COMMIT_RANGE}; - ODP_PATCHES=`echo ${TRAVIS_COMMIT_RANGE} | sed 's/\.//'`; - if [ -z "${ODP_PATCHES}" ]; then env; exit 1; fi; - ./scripts/ci-checkpatches.sh ${ODP_PATCHES}; - exit $?; - fi - - sudo apt-get -qq update - - sudo apt-get install automake autoconf libtool libssl-dev graphviz mscgen doxygen - - sudo apt-get install libpcap-dev linux-headers-`uname -r` + - sudo apt-get install linux-headers-`uname -r` - sudo pip install coverage - gem install asciidoctor - PATH=${PATH//:\.\/node_modules\/\.bin/} - - if [ "$CC" = "clang" ]; then export CXX="clang++-3.8" CC="clang-3.8" LD="clang-3.8"; fi # Install cunit for the validation tests because distro version is too old and fails C99 compile - sudo apt-get remove libcunit1-dev libcunit1 - export CUNIT_VERSION=2.1-3 - curl -sSOL https://github.com/Linaro/libcunit/releases/download/${CUNIT_VERSION}/CUnit-${CUNIT_VERSION}.tar.bz2 - tar -jxf *.bz2 - - cd CUnit* + - pushd CUnit* - ./bootstrap - ./configure --enable-debug --enable-automated --enable-basic --enable-console --enable-examples --enable-test - make - sudo make install - - cd .. + - popd - export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" # DPDK pktio @@ -103,30 +88,21 @@ before_install: - pushd ${TARGET} - sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config - popd - - make install T=${TARGET} EXTRA_CFLAGS="-fPIC" > /dev/null + - make install T=${TARGET} EXTRA_CFLAGS="-fPIC" - popd # Netmap pktio - - sudo apt-get source linux-image-$(uname -r) > /dev/null - - KSRC="$PWD/`find . -name kernel-parameters.txt | cut -d / -f 2 `" - git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v11.2 https://github.com/luigirizzo/netmap.git - pushd netmap/LINUX - - ./configure --kernel-sources=$KSRC - - make > /dev/null + - ./configure + - make - sudo insmod ./netmap.ko - popd script: - ./bootstrap - - ./configure -# doxygen does not trap on warnings, check for them here. - - make doxygen-doc |tee doxygen.log - - fgrep -rvq warning ./doxygen.log - - make distcheck - - - ./bootstrap - ./configure --prefix=$HOME/odp-install --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET} --with-netmap-path=`pwd`/netmap CFLAGS="$MY_CF" CXXFLAGS="$MY_CF" LDFLAGS="$MY_LDF" - - make -j 4 + - make -j $(nproc) - sudo LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" make check - make install @@ -138,20 +114,41 @@ script: - echo "Static link.." - ${CC} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst -I${HOME}/odp-install/include -L${HOME}/odp-install/lib -lodp-linux -L${OLDPWD}/dpdk/x86_64-native-linuxapp-gcc/lib -lrt -ldpdk -lpthread -lcrypto -lpcap $MY_CF $MY_LDF -ldl -static - ./odp_hello_inst - - popd - - sudo rm -rf dpdk - - sudo rm -rf netmap - - sudo rm -rf $KSRC - -after_success: - - if [ -n "$DOCOV" ]; then find . -type f -iname '*.[ch]' -not -path ".git/*" -execdir gcov {} \; ; bash <(curl -s https://codecov.io/bash) -X coveragepy; fi - -addons: - coverity_scan: - project: - name: "$TRAVIS_REPO_SLUG" - notification_email: xxxx - build_command_prepend: "./bootstrap && ./configure --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example" - build_command: "make" - branch_pattern: coverity_scan +jobs: + include: + - stage: test + compiler: gcc + script: + - ./bootstrap + - ./configure + - make distcheck + - stage: test + compiler: clang-3.8 + script: + - ./bootstrap + - ./configure + - make distcheck + - stage: test + compiler: gcc + env: MY_CF="-O0 -coverage" MY_LDF="--coverage" DOCOV=1 + script: + - ./bootstrap + - ./configure --prefix=$HOME/odp-install --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET} --with-netmap-path=`pwd`/netmap CFLAGS="$MY_CF" CXXFLAGS="$MY_CF" LDFLAGS="$MY_LDF" + - make check -j $(nproc) + - find . -type f -iname '*.[ch]' -not -path ".git/*" -execdir gcov {} \; ; bash <(curl -s https://codecov.io/bash) -X coveragepy + - stage: test + compiler: gcc + script: + # doxygen does not trap on warnings, check for them here. + - ./bootstrap + - ./configure + - make doxygen-doc |tee doxygen.log + - fgrep -rvq warning ./doxygen.log + - stage: test + compiler: gcc + script: + - echo ${TRAVIS_COMMIT_RANGE}; + - ODP_PATCHES=`echo ${TRAVIS_COMMIT_RANGE} | sed 's/\.//'`; + - if [ -z "${ODP_PATCHES}" ]; then env; exit 1; fi; + - ./scripts/ci-checkpatches.sh ${ODP_PATCHES};