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

[Swift6] better configuration #19732

Merged
merged 22 commits into from
Oct 2, 2024

[swift6] general improvements

eeb9149
Select commit
Loading
Failed to load commit list.
Merged

[Swift6] better configuration #19732

[swift6] general improvements
eeb9149
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch succeeded Oct 2, 2024 in 18m 14s

Build Passed

The build passed, just like the previous build.

Details

This is a normal build for the feature/swift6-general-improvements 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 (Xenial)
JDK Version openjdk11
Build Configuration
{
  "language": "java",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "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"
    ]
  },
  "services": [
    "docker"
  ],
  "addons": {
    "apt": {
      "sources": [
        {
          "name": "ubuntu-toolchain-r-test"
        }
      ],
      "packages": [
        "g++-5"
      ]
    },
    "chrome": "stable",
    "hosts": [
      "petstore.swagger.io"
    ]
  },
  "before_install": [
    "sudo rm -rf /var/lib/apt/lists/*",
    "curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -",
    "sudo add-apt-repository \"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) edge\"",
    "sudo apt-get update",
    "mkdir -vp ~/.docker/cli-plugins/",
    "curl --silent -L \"https://github.com/docker/buildx/releases/download/v0.3.0/buildx-v0.3.0.linux-amd64\" > ~/.docker/cli-plugins/docker-buildx",
    "chmod a+x ~/.docker/cli-plugins/docker-buildx",
    "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",
    "docker buildx version",
    "./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;",
    "if [ $DOCKER_HUB_USERNAME ]; then echo \"$DOCKER_HUB_PASSWORD\" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin; export cli_version=$(\\mvn -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\\['); export build_date=$(date -u +\"%Y-%m-%dT%H:%M:%SZ\"); docker buildx create --use; if [ ! -z \"$TRAVIS_TAG\" ]; then docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-online --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_GENERATOR_IMAGE_NAME:latest -t $DOCKER_GENERATOR_IMAGE_NAME:$TRAVIS_TAG -t $DOCKER_GENERATOR_IMAGE_NAME -t $DOCKER_GENERATOR_IMAGE_NAME:latest-release ./modules/openapi-generator-online; echo \"Built and tagged $DOCKER_GENERATOR_IMAGE_NAME\"; fi; if [ -z \"$TRAVIS_TAG\" ] && [ \"$TRAVIS_BRANCH\" = \"master\" ] && [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]; then docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-online --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_GENERATOR_IMAGE_NAME ./modules/openapi-generator-online; echo \"Pushed to $DOCKER_GENERATOR_IMAGE_NAME for master\"; fi; fi;",
    "if [ $DOCKER_HUB_USERNAME ]; then echo \"$DOCKER_HUB_PASSWORD\" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin; cp docker-entrypoint.sh ./modules/openapi-generator-cli; export cli_version=$(\\mvn -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\\['); export build_date=$(date -u +\"%Y-%m-%dT%H:%M:%SZ\"); docker buildx create --use; docker buildx build --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-cli --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_CODEGEN_CLI_IMAGE_NAME ./modules/openapi-generator-cli; if [ ! -z \"$TRAVIS_TAG\" ]; then docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-cli --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_CODEGEN_CLI_IMAGE_NAME:latest -t $DOCKER_CODEGEN_CLI_IMAGE_NAME:$TRAVIS_TAG -t $DOCKER_CODEGEN_CLI_IMAGE_NAME -t $DOCKER_CODEGEN_CLI_IMAGE_NAME:latest-release ./modules/openapi-generator-cli; echo \"Built and tagged $DOCKER_GENERATOR_IMAGE_NAME\"; fi; if [ -z \"$TRAVIS_TAG\" ] && [ \"$TRAVIS_BRANCH\" = \"master\" ] && [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]; then docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-cli --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_CODEGEN_CLI_IMAGE_NAME ./modules/openapi-generator-cli; echo \"Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME\"; 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\"}"
  ]
}