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

Add Windows build, fix NPE adding agent jar #227

Merged
merged 4 commits into from
Oct 12, 2023

fix: only add the agent jar if it can be located

1a165fa
Select commit
Loading
Failed to load commit list.
Merged

Add Windows build, fix NPE adding agent jar #227

fix: only add the agent jar if it can be located
1a165fa
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Oct 12, 2023 in 12m 13s

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 #227 Add Windows build, fix NPE adding agent jar.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has three jobs, running in parallel.

Job ENV OS State
892.1 jdk 8 JDK=8 Linux passed
892.2 jdk 11 JDK=11 Linux passed
892.3 jdk 17 JDK=17 Linux passed

Build Configuration

Build Option Setting
Language Shell
Operating System Linux (Jammy)
Build Configuration
{
  "language": "shell",
  "os": [
    "linux"
  ],
  "dist": "jammy",
  "if": "type != push OR branch = master OR branch =~ /^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/",
  "before_cache": [
    "rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock",
    "rm -fr $HOME/.gradle/caches/*/plugin-resolution/"
  ],
  "cache": {
    "directories": [
      "$HOME/.gradle/caches/",
      "$HOME/.gradle/wrapper/",
      "$HOME/.m2/",
      "$HOME/.asdf/"
    ]
  },
  "before_install": [
    "if [ ! -d $HOME/.asdf/plugins ]; then\n  git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch v0.12.0\n  source \"$HOME/.asdf/asdf.sh\"\n  asdf plugin add java\n  asdf plugin add prune https://github.com/apotterri/asdf-prune.git\nfi\nsource \"$HOME/.asdf/asdf.sh\"\nasdf update\nasdf plugin update --all\nnvm install lts/*\n"
  ],
  "jobs": {
    "include": [
      {
        "name": "jdk 8",
        "env": [
          {
            "JDK": "8"
          }
        ],
        "install": [
          "source \"$HOME/.asdf/asdf.sh\"\nasdf install java latest:adoptopenjdk-8\nasdf prune java adoptopenjdk-8\nasdf local java latest:adoptopenjdk-8\n"
        ]
      },
      {
        "name": "jdk 11",
        "env": [
          {
            "JDK": "11"
          }
        ],
        "install": [
          "source \"$HOME/.asdf/asdf.sh\"\nasdf install java latest:adoptopenjdk-11\nasdf prune java adoptopenjdk-11\nasdf local java latest:adoptopenjdk-11\n"
        ]
      },
      {
        "name": "jdk 17",
        "env": [
          {
            "JDK": "17"
          }
        ],
        "install": [
          "source \"$HOME/.asdf/asdf.sh\"\nasdf install java latest:adoptopenjdk-17\nasdf prune java adoptopenjdk-17\nasdf local java latest:adoptopenjdk-17\n"
        ]
      }
    ]
  },
  "script": [
    "source \"$HOME/.asdf/asdf.sh\"\nexport JAVA_HOME=\"$(dirname $(dirname $(asdf which java)))\"\nexport JDK_HOME=\"$JAVA_HOME\"\njava -version\n./gradlew check\n./gradlew integrationTest\n./bin/test\n"
  ],
  "before_deploy": [
    "npm i -g \\\n    semantic-release \\\n    @semantic-release/exec \\\n    @semantic-release/git \\\n    @semantic-release/changelog \\\n    @google/semantic-release-replace-plugin\n"
  ],
  "deploy": [
    {
      "provider": "script",
      "script": "semantic-release",
      "on": {
        "branch": [
          "master"
        ],
        "condition": [
          "$JDK = 8"
        ]
      }
    }
  ]
}