All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: qemu-devel@nongnu.org
Cc: fam@euphon.net, berrange@redhat.com, stefanb@linux.vnet.ibm.com,
	"Alex Bennée" <alex.bennee@linaro.org>,
	richard.henderson@linaro.org, f4bug@amsat.org,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com,
	pbonzini@redhat.com, aurelien@aurel32.net
Subject: [PATCH v3 14/17] .travis.yml: introduce TEST_BUILD_CMD and use it for check-tcg
Date: Mon,  3 Feb 2020 09:09:29 +0000	[thread overview]
Message-ID: <20200203090932.19147-15-alex.bennee@linaro.org> (raw)
In-Reply-To: <20200203090932.19147-1-alex.bennee@linaro.org>

At least for check-tcg we can split the build phase from the test
phase and do the former in parallel. While we are at it drop the V=1
for the check-tcg part as it just generates a lot more noise in the
logs.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 .travis.yml | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index a600f508b0a..022462f6981 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -71,6 +71,7 @@ env:
     - SRC_DIR=".."
     - BUILD_DIR="build"
     - BASE_CONFIG="--disable-docs --disable-tools"
+    - TEST_BUILD_CMD=""
     - TEST_CMD="make check V=1"
     # This is broadly a list of "mainline" softmmu targets which have support across the major distros
     - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
@@ -96,6 +97,12 @@ before_script:
 # Main build & test - rarely overridden - controlled by TEST_CMD
 script:
   - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
+  - |
+    if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then
+        ${TEST_BUILD_CMD} || BUILD_RC=$?
+    else
+        $(exit $BUILD_RC);
+    fi
   - if [ "$BUILD_RC" -eq 0 ] ; then travis_retry ${TEST_CMD} ; else $(exit $BUILD_RC); fi
 after_script:
   - if command -v ccache ; then ccache --show-stats ; fi
@@ -368,7 +375,8 @@ matrix:
     - name: "GCC check-tcg (user)"
       env:
         - CONFIG="--disable-system --enable-debug-tcg"
-        - TEST_CMD="make -j${JOBS} check-tcg V=1"
+        - TEST_BUILD_CMD="make -j${JOBS} build-tcg"
+        - TEST_CMD="make check-tcg"
         - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
 
 
@@ -377,7 +385,8 @@ matrix:
     - name: "GCC plugins check-tcg (user)"
       env:
         - CONFIG="--disable-system --enable-plugins --enable-debug-tcg --target-list-exclude=sparc64-linux-user"
-        - TEST_CMD="make -j${JOBS} check-tcg V=1"
+        - TEST_BUILD_CMD="make -j${JOBS} build-tcg"
+        - TEST_CMD="make check-tcg"
         - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
 
 
@@ -385,7 +394,8 @@ matrix:
     - name: "GCC check-tcg (some-softmmu)"
       env:
         - CONFIG="--enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu"
-        - TEST_CMD="make -j${JOBS} check-tcg V=1"
+        - TEST_BUILD_CMD="make -j${JOBS} build-tcg"
+        - TEST_CMD="make check-tcg"
         - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
 
 
@@ -393,7 +403,8 @@ matrix:
     - name: "GCC plugins check-tcg (some-softmmu)"
       env:
         - CONFIG="--enable-plugins --enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu"
-        - TEST_CMD="make -j${JOBS} check-tcg V=1"
+        - TEST_BUILD_CMD="make -j${JOBS} build-tcg"
+        - TEST_CMD="make check-tcg"
         - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
 
     - name: "[aarch64] GCC check-tcg"
-- 
2.20.1



  parent reply	other threads:[~2020-02-03  9:15 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-03  9:09 [PATCH v3 00/17] testing/next (with build fixes, finally GREEN!) Alex Bennée
2020-02-03  9:09 ` [PATCH v3 01/17] tests/docker: move most cross compilers to buster base Alex Bennée
2020-02-03  9:09 ` [PATCH v3 02/17] tests/docker: better handle symlinked libs Alex Bennée
2020-02-03  9:09 ` [PATCH v3 03/17] gitlab-ci: Refresh the list of iotests Alex Bennée
2020-02-03  9:09 ` [PATCH v3 04/17] travis.yml: Install genisoimage package Alex Bennée
2020-02-03  9:09 ` [PATCH v3 05/17] .shippable: --disable-docs for cross-compile tests Alex Bennée
2020-02-03  9:09 ` [PATCH v3 06/17] hw/hppa/Kconfig: LASI chipset requires PARALLEL port Alex Bennée
2020-02-03  9:09 ` [PATCH v3 07/17] .travis.yml: Drop superfluous use of --python=python3 parameter Alex Bennée
2020-02-03  9:09 ` [PATCH v3 08/17] .travis.yml: Add description to each job Alex Bennée
2020-02-03  9:09 ` [PATCH v3 09/17] .travis.yml: build documents under bionic Alex Bennée
2020-02-03  9:09 ` [PATCH v3 10/17] .travis.yml: move cache flushing to early common phase Alex Bennée
2020-02-03  9:09 ` [PATCH v3 11/17] .travis.yml: probe for number of available processors Alex Bennée
2020-02-03  9:09 ` [PATCH v3 12/17] tests/tcg: add a configure compiler check for ARMv8.1 and SVE Alex Bennée
2020-02-03  9:09 ` [PATCH v3 13/17] tests/tcg: gate pauth-% tests on having compiler support Alex Bennée
2020-02-03  9:09 ` Alex Bennée [this message]
2020-02-03 15:00   ` [PATCH v3 14/17] .travis.yml: introduce TEST_BUILD_CMD and use it for check-tcg Philippe Mathieu-Daudé
2020-02-03  9:09 ` [PATCH v3 15/17] .travis.yml: drop the travis_retry from tests Alex Bennée
2020-02-03 14:58   ` Philippe Mathieu-Daudé
2020-02-03  9:09 ` [PATCH v3 16/17] .travis.yml: drop cris-linux-user from the plugins test Alex Bennée
2020-02-03  9:09 ` [PATCH v3 17/17] .travis.yml: single thread build-tcg Alex Bennée
2020-02-03 10:01   ` Thomas Huth
2020-02-03 11:35     ` Philippe Mathieu-Daudé
2020-02-03 14:37       ` Alex Bennée

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=20200203090932.19147-15-alex.bennee@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=aurelien@aurel32.net \
    --cc=berrange@redhat.com \
    --cc=cota@braap.org \
    --cc=f4bug@amsat.org \
    --cc=fam@euphon.net \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=stefanb@linux.vnet.ibm.com \
    --cc=stefanha@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.