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

Tweak .travis.yml to get its validation passing completely

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.11, 3.6.9, 3.7.5, 3.8.2, 3.9
    • Fix Version/s: 3.7.6, 3.8.3
    • Component/s: General
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull 3.7 Branch:
    • Pull 3.8 Branch:
    • Pull Master Branch:

      Description

      This was detected by Luca Bösch 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

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Peer reviewer:
              Luca Bösch
              Integrator:
              Jun Pataleta
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                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