diff mbox series

[v1,2/3] .travis.yml: split some more system builds

Message ID 20190319124800.7454-3-alex.bennee@linaro.org
State New
Headers show
Series reduce timeouts on Travis | expand

Commit Message

Alex Bennée March 19, 2019, 12:47 p.m. UTC
We define a new class of targets (MAIN_SOFTMMU_TARGETS) to cover the
major architectures. We either just build those or use the new
target-list-exclude mechanism to remove them from the list. This will
hopefully stop some of the longer builds hitting the Travis timeout
limit.

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

Comments

Wainer dos Santos Moschetta March 21, 2019, 3:34 p.m. UTC | #1
On 03/19/2019 09:47 AM, Alex Bennée wrote:
> We define a new class of targets (MAIN_SOFTMMU_TARGETS) to cover the
> major architectures. We either just build those or use the new
> target-list-exclude mechanism to remove them from the list. This will
> hopefully stop some of the longer builds hitting the Travis timeout
> limit.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>   .travis.yml | 23 +++++++++++++++++------
>   1 file changed, 17 insertions(+), 6 deletions(-)

Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>

>
> diff --git a/.travis.yml b/.travis.yml
> index 980fc5c1eb..407fc25945 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -61,7 +61,8 @@ env:
>       - BUILD_DIR="."
>       - BASE_CONFIG="--disable-docs --disable-tools"
>       - TEST_CMD="make check -j3 V=1"
> -
> +    # This is broadly a list of "mainline" softmmu targets which have support across the major distros
> +    - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
>   
>   git:
>     # we want to do this ourselves
> @@ -81,8 +82,13 @@ matrix:
>           - CONFIG="--disable-system"
>   
>   
> +    # we split the system builds as it takes a while to build them all
> +    - env:
> +        - CONFIG="--disable-user --target-list=${MAIN_SOFTMMU_TARGETS}"
> +
> +
>       - env:
> -        - CONFIG="--disable-user"
> +        - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
>   
>   
>       # Just build tools and run minimal unit and softfloat checks
> @@ -106,7 +112,7 @@ matrix:
>   
>       # Module builds are mostly of interest to major distros
>       - env:
> -        - CONFIG="--enable-modules --target-list=aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
> +        - CONFIG="--enable-modules --target-list=${MAIN_SOFTMMU_TARGETS}"
>   
>   
>       # Alternate coroutines implementations are only really of interest to KVM users
> @@ -141,13 +147,18 @@ matrix:
>   
>   
>       - env:
> -        - CONFIG="--disable-user"
> +        - CONFIG="--disable-user --target-list=${MAIN_SOFTMMU_TARGETS}"
> +      compiler: clang
> +
> +
> +    - env:
> +        - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
>         compiler: clang
>   
>   
>       # gprof/gcov are GCC features
>       - env:
> -        - CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
> +        - CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=${MAIN_SOFTMMU_TARGETS}"
>         after_success:
>           - ${SRC_DIR}/scripts/travis/coverage-summary.sh
>   
> @@ -182,7 +193,7 @@ matrix:
>   
>       # MacOSX builds
>       - env:
> -        - CONFIG="--target-list=aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
> +        - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS}"
>         os: osx
>         osx_image: xcode9.4
>         compiler: clang
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index 980fc5c1eb..407fc25945 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -61,7 +61,8 @@  env:
     - BUILD_DIR="."
     - BASE_CONFIG="--disable-docs --disable-tools"
     - TEST_CMD="make check -j3 V=1"
-
+    # This is broadly a list of "mainline" softmmu targets which have support across the major distros
+    - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
 
 git:
   # we want to do this ourselves
@@ -81,8 +82,13 @@  matrix:
         - CONFIG="--disable-system"
 
 
+    # we split the system builds as it takes a while to build them all
+    - env:
+        - CONFIG="--disable-user --target-list=${MAIN_SOFTMMU_TARGETS}"
+
+
     - env:
-        - CONFIG="--disable-user"
+        - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
 
 
     # Just build tools and run minimal unit and softfloat checks
@@ -106,7 +112,7 @@  matrix:
 
     # Module builds are mostly of interest to major distros
     - env:
-        - CONFIG="--enable-modules --target-list=aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
+        - CONFIG="--enable-modules --target-list=${MAIN_SOFTMMU_TARGETS}"
 
 
     # Alternate coroutines implementations are only really of interest to KVM users
@@ -141,13 +147,18 @@  matrix:
 
 
     - env:
-        - CONFIG="--disable-user"
+        - CONFIG="--disable-user --target-list=${MAIN_SOFTMMU_TARGETS}"
+      compiler: clang
+
+
+    - env:
+        - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
       compiler: clang
 
 
     # gprof/gcov are GCC features
     - env:
-        - CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
+        - CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=${MAIN_SOFTMMU_TARGETS}"
       after_success:
         - ${SRC_DIR}/scripts/travis/coverage-summary.sh
 
@@ -182,7 +193,7 @@  matrix:
 
     # MacOSX builds
     - env:
-        - CONFIG="--target-list=aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
+        - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS}"
       os: osx
       osx_image: xcode9.4
       compiler: clang