diff mbox series

[1/1] travis.yml: Fix Travis YAML configuration warnings

Message ID 20200207210124.141119-2-wainersm@redhat.com (mailing list archive)
State New, archived
Headers show
Series Travis: Fix YAML warnings | expand

Commit Message

Wainer dos Santos Moschetta Feb. 7, 2020, 9:01 p.m. UTC
This fixes the following warnings Travis has detected on the
YAML configuration:

- 'on root: missing os, using the default "linux"'
- 'on root: the key matrix is an alias for jobs, using jobs'
- 'on jobs.include.python: unexpected sequence, using the first value (3.5)'
- 'on jobs.include.python: unexpected sequence, using the first value (3.6)'

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
---
 .travis.yml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Comments

Alex Bennée Feb. 10, 2020, 12:11 p.m. UTC | #1
Wainer dos Santos Moschetta <wainersm@redhat.com> writes:

> This fixes the following warnings Travis has detected on the
> YAML configuration:
>
> - 'on root: missing os, using the default "linux"'
> - 'on root: the key matrix is an alias for jobs, using jobs'
> - 'on jobs.include.python: unexpected sequence, using the first value (3.5)'
> - 'on jobs.include.python: unexpected sequence, using the first value (3.6)'
>
> Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>

Queued to testing/next, thanks.
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index 6c0ec6cf69..b1228e9175 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,7 @@ 
 # The current Travis default is a VM based 16.04 Xenial on GCE
 # Additional builds with specific requirements for a full VM need to
 # be added as additional matrix: entries later on
+os: linux
 dist: xenial
 language: c
 compiler:
@@ -113,7 +114,7 @@  after_script:
   - if command -v ccache ; then ccache --show-stats ; fi
 
 
-matrix:
+jobs:
   include:
     - name: "GCC static (user)"
       env:
@@ -297,8 +298,7 @@  matrix:
         - CONFIG="--target-list=x86_64-softmmu"
         - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
       language: python
-      python:
-        - "3.5"
+      python: 3.5
 
 
     - name: "GCC Python 3.6 (x86_64-softmmu)"
@@ -306,8 +306,7 @@  matrix:
         - CONFIG="--target-list=x86_64-softmmu"
         - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
       language: python
-      python:
-        - "3.6"
+      python: 3.6
 
 
     # Acceptance (Functional) tests