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

[PROD-8364] Activity Filter & Sorting #4577

Open
wants to merge 77 commits into
base: release
Choose a base branch
from

PROD-8364 phpcs

e7084e1
Select commit
Loading
Failed to load commit list.
Open

[PROD-8364] Activity Filter & Sorting #4577

PROD-8364 phpcs
e7084e1
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request failed Jan 9, 2025 in 10m 51s

Build Failed

The build failed. 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 #4577 [PROD-8364] Activity Filter & Sorting.
Any changes that have been made to the release branch before the build ran are also included.

Jobs and Stages

This build only has a single job.
You can use jobs to test against multiple versions of your runtime or dependencies, or to speed up your build.

Build Configuration

Build Option Setting
Language PHP
Operating System Linux (Trusty)
PHP Version 7.3
Node.js Versions 8, 10
Build Configuration
{
  "language": "php",
  "os": [
    "linux"
  ],
  "dist": "trusty",
  "sudo": false,
  "node_js": [
    "8",
    "10"
  ],
  "cache": {
    "apt": true,
    "directories": [
      "$HOME/.composer/cache/files",
      "$HOME/.npm",
      "/tmp/node"
    ]
  },
  "git": {
    "depth": 10
  },
  "php": [
    "7.3"
  ],
  "env": [
    "jobs={:WP_VERSION=>\"master\", :BP_TRAVISCI=>\"travis:grunt\"}"
  ],
  "before_install": [
    "export WP_DEVELOP_DIR=/tmp/wordpress/",
    "mkdir -p $WP_DEVELOP_DIR",
    "git clone --depth=1 --branch=\"$WP_VERSION\" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR",
    "plugin_slug=$(basename $(pwd))",
    "plugin_dir=$WP_DEVELOP_DIR/src/wp-content/plugins/$plugin_slug",
    "cd ..",
    "mv $plugin_slug $plugin_dir",
    "# Remove Xdebug for a huge performance increase:\nif [[ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]]; then\n  phpenv config-rm xdebug.ini\nfi\n",
    "if [[ \"$SNIFF\" == \"1\" ]]; then export PHPCS_DIR=/tmp/phpcs; fi",
    "if [[ \"$SNIFF\" == \"1\" ]]; then export SNIFFS_DIR=/tmp/sniffs; fi",
    "if [[ \"$SNIFF\" == \"1\" ]]; then git clone -b master --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git $PHPCS_DIR; fi",
    "if [[ \"$SNIFF\" == \"1\" ]]; then git clone -b master --depth 1 https://github.com/WordPress/WordPress-Coding-Standards.git $SNIFFS_DIR; fi",
    "if [[ \"$SNIFF\" == \"1\" ]]; then $PHPCS_DIR/bin/phpcs --config-set installed_paths $SNIFFS_DIR; fi",
    "if [[ \"$SNIFF\" == \"1\" ]]; then phpenv rehash; fi",
    "cd $WP_DEVELOP_DIR",
    "echo $WP_DEVELOP_DIR",
    "cp wp-tests-config-sample.php wp-tests-config.php",
    "sed -i \"s/youremptytestdbnamehere/wordpress_test/\" wp-tests-config.php",
    "sed -i \"s/yourusernamehere/root/\" wp-tests-config.php",
    "sed -i \"s/yourpasswordhere//\" wp-tests-config.php",
    "mysql -e 'CREATE DATABASE wordpress_test;' -uroot",
    "cd $plugin_dir",
    "export PATH=\"$HOME/.composer/vendor/bin:$PATH\"",
    "node --version",
    "nvm install 14",
    "node --version",
    "npm install -g grunt-cli",
    "npm --version",
    "mysql --version",
    "phpenv versions",
    "php --version",
    "php -m",
    "phpunit --version",
    "curl --version",
    "grunt --version",
    "git --version",
    "svn --version"
  ],
  "before_script": [
    "if [[ \"$SNIFF\" == \"1\" ]]; then $PHPCS_DIR/bin/phpcs -p . --standard=WordPress --ignore=*/vendor/* src/; fi",
    "mkdir -p /tmp/node/node_modules",
    "ln -s /tmp/node/node_modules $plugin_dir/node_modules",
    "npm install",
    "npm rebuild node-sass"
  ],
  "script": [
    "grunt $BP_TRAVISCI"
  ],
  "notifications": {
    "email": [
      {
        "enabled": false
      }
    ]
  },
  "jobs": {
    "include": [
      {
        "php": "7.3",
        "env": [
          {
            "WP_VERSION": "master",
            "BP_TRAVISCI": "travis:grunt"
          }
        ]
      }
    ]
  }
}