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

deprecates integration with PHP Copy/Paste Detector (PHPCPD) library. #264

Merged
merged 2 commits into from
Feb 5, 2024

Add a few details towards phpcpd deprecation

02cb44e
Select commit
Loading
Failed to load commit list.
Merged

deprecates integration with PHP Copy/Paste Detector (PHPCPD) library. #264

Add a few details towards phpcpd deprecation
02cb44e
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Feb 5, 2024 in 30m 38s

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 #264 deprecates integration PHP Copy/Paste Detector (PHPCPD) library..
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
828.1 7.4 PGVER=13 Linux passed

Stage 2: Code coverage (coveralls)

This stage passed.

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

Stage 3: Integration tests

This stage passed.

Job PHP ENV OS State
828.3 8.2 PGVER=13 Linux passed
828.4 8.2 PGVER=13 Linux passed
828.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_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.2",
        "env": [
          {
            "MOODLE_BRANCH": "main"
          }
        ]
      },
      {
        "php": "8.2",
        "env": [
          {
            "MOODLE_BRANCH": "MOODLE_402_STABLE"
          }
        ]
      },
      {
        "php": "7.4",
        "env": [
          {
            "MOODLE_BRANCH": "MOODLE_39_STABLE"
          }
        ]
      }
    ]
  }
}