Skip to content

comment

f3f5479
Select commit
Loading
Failed to load commit list.
Merged

Add PHP server syntax check worfklow #21830

comment
f3f5479
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch required action Aug 28, 2025 in 21s

Build Errored

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

Details

This is a normal build for the php-server-workflow branch. You should be able to reproduce it by checking out the branch locally.

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 Java
Operating System Linux (Focal)
JDK Version openjdk11
Build Configuration
{
  "language": "java",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "sudo": true,
  "jdk": [
    "openjdk11"
  ],
  "before_cache": [
    "rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock",
    "rm -fr $HOME/.gradle/caches/*/plugin-resolution/",
    "rm -fr $HOME/.m2/repository/org/openapitools/"
  ],
  "cache": {
    "yarn": true,
    "directories": [
      "$HOME/.m2",
      "$HOME/.ivy2",
      "$HOME/.gradle/caches/",
      "$HOME/.gradle/wrapper/",
      "$HOME/samples/client/petstore/javascript/node_modules",
      "$HOME/samples/client/petstore/php/OpenAPIToolsClient-php/vendor",
      "$HOME/samples/client/petstore/ruby/vendor/bundle",
      "$HOME/samples/client/petstore/python/.venv/",
      "$HOME/samples/server/petstore/rust-server/target",
      "$HOME/samples/server/petstore/rust-axum/target",
      "$HOME/perl5",
      "$HOME/.cargo",
      "$HOME/.pub-cache",
      "$HOME/samples/server/petstore/cpp-pistache/pistache",
      "$HOME/.rvm/gems/ruby-2.4.1",
      "$HOME/website/node_modules/",
      "$HOME/.cache/deno",
      "$HOME/.phpenv/versions/8.1.4"
    ]
  },
  "addons": {
    "hosts": [
      "petstore.swagger.io"
    ]
  },
  "before_install": [
    "curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.0",
    "export PATH=\"$HOME/.yarn/bin:$PATH\"",
    "cat /etc/hosts",
    "java -version",
    "if [ \"$TRAVIS_BRANCH\" = \"master\" ] && [ \"$TRAVIS_PULL_REQUEST\" == \"false\" ]; then openssl aes-256-cbc -K $encrypted_6e2c8bba47c6_key -iv $encrypted_6e2c8bba47c6_iv -in sec.gpg.enc -out sec.gpg -d ; gpg --keyserver keyserver.ubuntu.com --recv-key $SIGNING_KEY ; gpg --check-trustdb ; fi;",
    "pushd .; cd website; yarn install; popd"
  ],
  "script": [
    "set -e",
    "./mvnw -e --no-snapshot-updates --quiet --batch-mode --show-version clean install -DskipTests -Dmaven.javadoc.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error"
  ],
  "after_success": [
    "if [ $SONATYPE_USERNAME ] && [ \"$TRAVIS_PULL_REQUEST\" == \"false\" ]; then if [ \"$TRAVIS_BRANCH\" = \"master\" ] && [ -z $TRAVIS_TAG ]; then echo \"Publishing from branch $TRAVIS_BRANCH\"; ./mvnw clean deploy --quiet -DskipTests=true -B -U -P release --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error; echo \"Finished mvn clean deploy for $TRAVIS_BRANCH\"; pushd .; cd modules/openapi-generator-gradle-plugin; ./gradlew -Psigning.keyId=\"$SIGNING_KEY\" -Psigning.password=\"$SIGNING_PASSPHRASE\" -Psigning.secretKeyRingFile=\"${TRAVIS_BUILD_DIR}/sec.gpg\" -PossrhUsername=\"${SONATYPE_USERNAME}\" -PossrhPassword=\"${SONATYPE_PASSWORD}\" publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository; echo \"Finished ./gradlew publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository\"; popd; elif [ -z $TRAVIS_TAG ] && [[ \"$TRAVIS_BRANCH\" =~ ^[0-9]+\\.[0-9]+\\.x$ ]]; then echo \"Publishing from branch $TRAVIS_BRANCH\"; ./mvnw clean deploy --quiet --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error; echo \"Finished mvn clean deploy for $TRAVIS_BRANCH\"; pushd .; cd modules/openapi-generator-gradle-plugin; ./gradlew -PossrhUsername=\"${SONATYPE_USERNAME}\" -PossrhPassword=\"${SONATYPE_PASSWORD}\" publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository; echo \"Finished ./gradlew publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository\"; popd; fi; if [ -n $TRAVIS_TAG ] && [[ \"$TRAVIS_TAG\" =~ ^[v][0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then echo \"Publishing the gradle plugin to Gradle Portal on tag $TRAVIS_TAG (only)\"; pushd .; cd modules/openapi-generator-gradle-plugin; ./gradlew -Psigning.keyId=\"$SIGNING_KEY\" -Psigning.password=\"$SIGNING_PASSPHRASE\" -Psigning.secretKeyRingFile=\"${TRAVIS_BUILD_DIR}/sec.gpg\" publishPlugins -Dgradle.publish.key=$GRADLE_PUBLISH_KEY -Dgradle.publish.secret=$GRADLE_PUBLISH_SECRET; echo \"Finished ./gradlew publishPlugins (plugin portal)\"; popd; fi; fi;"
  ],
  "env": [
    "jobs={:DOCKER_GENERATOR_IMAGE_NAME=>\"openapitools/openapi-generator-online\", :DOCKER_CODEGEN_CLI_IMAGE_NAME=>\"openapitools/openapi-generator-cli\", :NODE_ENV=>\"test\", :CC=>\"gcc-5\", :CXX=>\"g++-5\"}"
  ]
}