Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust filter plugin validation requirements to comply with Moodle 4.5 #326

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Implement getRequiredFunctionCalls check and use it in filter plugin …

2b36993
Select commit
Loading
Failed to load commit list.
Open

Adjust filter plugin validation requirements to comply with Moodle 4.5 #326

Implement getRequiredFunctionCalls check and use it in filter plugin …
2b36993
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Oct 24, 2024 in 31m 39s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #326 Adjust filter plugin validation requirements to comply with Moodle 4.5.
Any changes that have been made to the main branch before the build ran are also included.

Jobs and Stages

This build has five jobs, running in three sequential stages.

Stage 1: CI test (make validate)

This stage passed.

Job PHP ENV OS State
976.1 7.4 PGVER=13 Linux passed

Stage 2: Code coverage (coveralls)

This stage passed.

Job PHP ENV OS State
976.2 7.4 PGVER=13 Linux passed

Stage 3: Integration tests

This stage passed.

Job PHP ENV OS State
976.3 8.3 PGVER=13 Linux passed
976.4 8.3 PGVER=13 Linux passed
976.5 7.4 PGVER=13 Linux passed

Build Configuration

Build Option Setting
Language PHP
Operating System Linux (Focal)
Build Configuration
{
  "language": "php",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "addons": {
    "postgresql": "13",
    "apt": {
      "packages": [
        "postgresql-13",
        "postgresql-client-13",
        "libonig5"
      ]
    }
  },
  "services": [
    "mysql",
    "docker"
  ],
  "cache": {
    "directories": [
      "$HOME/.composer/cache",
      "$HOME/.npm"
    ]
  },
  "env": [
    "global={:PGVER=>\"13\"}={:IGNORE_PATHS=>\"ignore\"}={:IGNORE_NAMES=>\"ignore_name.php\"}={:MUSTACHE_IGNORE_NAMES=>\"broken.mustache\"}={:DB=>\"pgsql\"}"
  ],
  "before_install": [
    "echo 'max_input_vars=5000' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini",
    "make init",
    "cp -R tests/Fixture/moodle-local_ci ../moodle-local_ci",
    "export PATH=\"$(cd bin; pwd):$(cd vendor/bin; pwd):$PATH\"",
    "export TRAVIS_BUILD_DIR=$(cd ../moodle-local_ci; pwd)",
    "if [ -n \"$DOCKER_USER\" ] && [ -n \"$DOCKER_TOKEN\" ]; then\n    echo \"$DOCKER_TOKEN\" | docker login -u \"$DOCKER_USER\" --password-stdin\n    echo \"Using authenticated connection (no pull limits)\"\nelse\n    echo \"Using unauthenticated docker (pull limits may apply). Setup DOCKER_USER and DOCKER_TOKEN if needed.\"\nfi\n"
  ],
  "install": [
    "moodle-plugin-ci install -vvv"
  ],
  "script": [
    "moodle-plugin-ci phplint",
    "moodle-plugin-ci phpcpd",
    "moodle-plugin-ci phpmd",
    "moodle-plugin-ci codechecker",
    "moodle-plugin-ci codefixer",
    "moodle-plugin-ci validate",
    "moodle-plugin-ci savepoints",
    "moodle-plugin-ci mustache",
    "moodle-plugin-ci grunt || [[ \"$MOODLE_BRANCH\" =~ MOODLE_3[0-9]+_STABLE ]]",
    "moodle-plugin-ci phpdoc",
    "moodle-plugin-ci phpunit --verbose --coverage-text --fail-on-warning",
    "moodle-plugin-ci behat --profile default",
    "moodle-plugin-ci behat --profile chrome",
    "moodle-plugin-ci behat --profile firefox --tags=\"@local_ci&&~@app\""
  ],
  "jobs": {
    "include": [
      {
        "stage": "CI test (make validate)",
        "php": "7.4",
        "before_install": [
          "skip"
        ],
        "install": [
          "make init"
        ],
        "script": [
          "make validate"
        ]
      },
      {
        "stage": "Code coverage (coveralls)",
        "if": "repo = moodlehq/moodle-plugin-ci",
        "php": "7.4",
        "before_install": [
          "skip"
        ],
        "install": [
          "make init",
          "composer create-project -n --no-dev --prefer-dist php-coveralls/php-coveralls coveralls ^2"
        ],
        "script": [
          "make coverage-phpunit"
        ],
        "after_success": [
          "coveralls/bin/php-coveralls -v"
        ]
      },
      {
        "stage": "Integration tests",
        "if": "env(MOODLE_BRANCH) IS present"
      },
      {
        "php": "8.3",
        "env": [
          {
            "MOODLE_BRANCH": "main"
          },
          {
            "MOODLE_APP": "true"
          }
        ]
      },
      {
        "php": "8.3",
        "env": [
          {
            "MOODLE_BRANCH": "MOODLE_405_STABLE"
          },
          {
            "MOODLE_APP": "true"
          }
        ]
      },
      {
        "php": "7.4",
        "env": [
          {
            "MOODLE_BRANCH": "MOODLE_39_STABLE"
          }
        ]
      }
    ]
  }
}