diff mbox series

[v2,11/12] gitlab: migrate the minimal tools and unit tests from Travis

Message ID 20210114165730.31607-12-alex.bennee@linaro.org (mailing list archive)
State New, archived
Headers show
Series testing/next (tags!, shippable/travis deprecation, regression fixes, checkpatch) | expand

Commit Message

Alex Bennée Jan. 14, 2021, 4:57 p.m. UTC
These tests are good at shaking out missing stubs which otherwise work
if we have built targets. Rather than create a new job just add the
checks to the existing tools-and-docs build.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 .gitlab-ci.yml | 4 +++-
 .travis.yml    | 9 ---------
 2 files changed, 3 insertions(+), 10 deletions(-)

Comments

Philippe Mathieu-Daudé Jan. 14, 2021, 5:57 p.m. UTC | #1
On 1/14/21 5:57 PM, Alex Bennée wrote:
> These tests are good at shaking out missing stubs which otherwise work
> if we have built targets. Rather than create a new job just add the
> checks to the existing tools-and-docs build.
> 
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>  .gitlab-ci.yml | 4 +++-
>  .travis.yml    | 9 ---------
>  2 files changed, 3 insertions(+), 10 deletions(-)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index bd60f3e741..a686bc40cf 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -124,11 +124,13 @@ check-system-debian:
>      IMAGE: debian-amd64
>      MAKE_CHECK_ARGS: check
>  
> +# No targets are built here, just tools and docs. This also feeds into
> +# the eventual documentation deployment steps later

Correcting with "just tools, docs [and softfloat checks]":
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>

>  build-tools-and-docs-debian:
>    <<: *native_build_job_definition
>    variables:
>      IMAGE: debian-amd64
> -    MAKE_CHECK_ARGS: ctags TAGS cscope
> +    MAKE_CHECK_ARGS: check-unit check-softfloat ctags TAGS cscope
>      CONFIGURE_ARGS: --disable-system --disable-user --enable-docs --enable-tools
>    artifacts:
>      expire_in: 2 days
> diff --git a/.travis.yml b/.travis.yml
> index 3b574a5968..5f1dea873e 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -119,15 +119,6 @@ after_script:
>  
>  jobs:
>    include:
> -    # Just build tools and run minimal unit and softfloat checks
> -    - name: "GCC check-unit and check-softfloat"
> -      env:
> -        - BASE_CONFIG="--enable-tools"
> -        - CONFIG="--disable-user --disable-system"
> -        - TEST_CMD="make check-unit check-softfloat -j${JOBS}"
> -        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
> -
> -
>      # --enable-debug implies --enable-debug-tcg, also runs quite a bit slower
>      - name: "GCC debug (main-softmmu)"
>        env:
>
Thomas Huth Jan. 14, 2021, 7 p.m. UTC | #2
On 14/01/2021 17.57, Alex Bennée wrote:
> These tests are good at shaking out missing stubs which otherwise work
> if we have built targets. Rather than create a new job just add the
> checks to the existing tools-and-docs build.
> 
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>   .gitlab-ci.yml | 4 +++-
>   .travis.yml    | 9 ---------
>   2 files changed, 3 insertions(+), 10 deletions(-)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index bd60f3e741..a686bc40cf 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -124,11 +124,13 @@ check-system-debian:
>       IMAGE: debian-amd64
>       MAKE_CHECK_ARGS: check
>   
> +# No targets are built here, just tools and docs. This also feeds into
> +# the eventual documentation deployment steps later
>   build-tools-and-docs-debian:
>     <<: *native_build_job_definition
>     variables:
>       IMAGE: debian-amd64
> -    MAKE_CHECK_ARGS: ctags TAGS cscope
> +    MAKE_CHECK_ARGS: check-unit check-softfloat ctags TAGS cscope
>       CONFIGURE_ARGS: --disable-system --disable-user --enable-docs --enable-tools
>     artifacts:
>       expire_in: 2 days
> diff --git a/.travis.yml b/.travis.yml
> index 3b574a5968..5f1dea873e 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -119,15 +119,6 @@ after_script:
>   
>   jobs:
>     include:
> -    # Just build tools and run minimal unit and softfloat checks
> -    - name: "GCC check-unit and check-softfloat"
> -      env:
> -        - BASE_CONFIG="--enable-tools"
> -        - CONFIG="--disable-user --disable-system"
> -        - TEST_CMD="make check-unit check-softfloat -j${JOBS}"
> -        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
> -
> -
>       # --enable-debug implies --enable-debug-tcg, also runs quite a bit slower
>       - name: "GCC debug (main-softmmu)"
>         env:
> 

Reviewed-by: Thomas Huth <thuth@redhat.com>
Willian Rampazzo Jan. 14, 2021, 7:36 p.m. UTC | #3
On Thu, Jan 14, 2021 at 2:27 PM Alex Bennée <alex.bennee@linaro.org> wrote:
>
> These tests are good at shaking out missing stubs which otherwise work
> if we have built targets. Rather than create a new job just add the
> checks to the existing tools-and-docs build.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>  .gitlab-ci.yml | 4 +++-
>  .travis.yml    | 9 ---------
>  2 files changed, 3 insertions(+), 10 deletions(-)
>

And, it helps moving out of Travis.

Reviewed-by: Willian Rampazzo <willianr@redhat.com>
diff mbox series

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bd60f3e741..a686bc40cf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -124,11 +124,13 @@  check-system-debian:
     IMAGE: debian-amd64
     MAKE_CHECK_ARGS: check
 
+# No targets are built here, just tools and docs. This also feeds into
+# the eventual documentation deployment steps later
 build-tools-and-docs-debian:
   <<: *native_build_job_definition
   variables:
     IMAGE: debian-amd64
-    MAKE_CHECK_ARGS: ctags TAGS cscope
+    MAKE_CHECK_ARGS: check-unit check-softfloat ctags TAGS cscope
     CONFIGURE_ARGS: --disable-system --disable-user --enable-docs --enable-tools
   artifacts:
     expire_in: 2 days
diff --git a/.travis.yml b/.travis.yml
index 3b574a5968..5f1dea873e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -119,15 +119,6 @@  after_script:
 
 jobs:
   include:
-    # Just build tools and run minimal unit and softfloat checks
-    - name: "GCC check-unit and check-softfloat"
-      env:
-        - BASE_CONFIG="--enable-tools"
-        - CONFIG="--disable-user --disable-system"
-        - TEST_CMD="make check-unit check-softfloat -j${JOBS}"
-        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
-
-
     # --enable-debug implies --enable-debug-tcg, also runs quite a bit slower
     - name: "GCC debug (main-softmmu)"
       env: