Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68392

Tweak .travis.yml to get its validation passing completely

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.5.11, 3.6.9, 3.7.5, 3.8.2, 3.9
    • 3.7.6, 3.8.3
    • General
    • MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • Hide
      1. Click on the travis badges in this page (that are shown together with the branch/diff information.
      2. Verify the "View config" tab has NOT a yellow spot (that uses to indicate the existence of warnings).
      3. Click on "View config".
      4. Verify that you see the message "Build config validation —" (without any warning or info notifications.

      That's all!

      • Alternatively it's possible to go to https://config.travis-ci.com/explore and paste the complete .travis.yml file there. With warnings, they are shown at the top of the middle column (Parsed and validated config). Without warnings, only the json is shown
      Show
      Click on the travis badges in this page (that are shown together with the branch/diff information. Verify the "View config" tab has NOT a yellow spot (that uses to indicate the existence of warnings). Click on "View config". Verify that you see the message "Build config validation —" (without any warning or info notifications. That's all! Alternatively it's possible to go to https://config.travis-ci.com/explore and paste the complete .travis.yml file there. With warnings, they are shown at the top of the middle column (Parsed and validated config). Without warnings, only the json is shown

    Description

      This was detected by lucaboesch when reviewing MDL-66263.

      Basically, while current .travis.yml is ok and jobs are run properly, there are few warnings and infos reported that should be cleaned for 100% conformance with the validator.

      Here there is current validation report:

      Warning: root: deprecated key sudo (The key `sudo` has no effect anymore.)
      Info: root: missing os, using the default linux
      Info: root: key matrix is an alias for jobs, using jobs
      

      Note that any yml can be also validated @ https://config.travis-ci.com/explore any time

      All that validation is, still, a beta feature, but surely it's ok to get a complete

      Ciao

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              stronk7 Eloy Lafuente (stronk7)
              Luca Bösch Luca Bösch
              Jun Pataleta Jun Pataleta
              Janelle Barcega Janelle Barcega
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/20

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 19 minutes
                  1h 19m