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

Make Moodle Install Clone step optional #305

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

Add comment

c6a4f18
Select commit
Loading
Failed to load commit list.
Open

Make Moodle Install Clone step optional #305

Add comment
c6a4f18
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request required action Jul 2, 2024 in 21m 37s

Build Errored

The build errored. This is a change from the previous build, which passed.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #305 Make Moodle Install Clone step optional.
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
937.1 7.4 PGVER=13 Linux passed

Stage 2: Code coverage (coveralls)

This stage passed.

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

Stage 3: Integration tests

This stage errored.

Job PHP ENV OS State
937.3 8.3 PGVER=13 Linux errored
937.4 8.3 PGVER=13 Linux errored
937.5 7.4 PGVER=13 Linux errored

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_APP=true 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"
          }
        ]
      },
      {
        "php": "8.3",
        "env": [
          {
            "MOODLE_BRANCH": "MOODLE_404_STABLE"
          }
        ]
      },
      {
        "php": "7.4",
        "env": [
          {
            "MOODLE_BRANCH": "MOODLE_39_STABLE"
          }
        ]
      }
    ]
  }
}