Skip to content

Commit

Permalink
Merge pull request #66 from marekkopecky/ci2
Browse files Browse the repository at this point in the history
Improve CI testing
  • Loading branch information
tadamski authored Aug 26, 2024
2 parents 08ecb88 + 90a53e9 commit 3f8ece7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

name: EJB Test Suite

Expand All @@ -11,11 +11,11 @@ jobs:
build-test-matrix:
name: ${{ matrix.jdk-distribution}}-${{ matrix.jdk-version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
jdk-distribution: [temurin]
jdk-version: [17]
steps:
Expand Down
14 changes: 4 additions & 10 deletions snapshots/src/main/script/createSnapshots.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ WILDFLY_NAME = "wildfly"
WILDFLY_REPOSITORY = "https://github.com/wildfly/wildfly"
WILDFLY_REPOSITORY_PROPERTY = "wildfly.repository"
WILDFLY_BRANCH_PROPERTY = "wildfly.branch"
BOMS_NAME = "boms"
BOMS_REPOSITORY = "https://github.com/wildfly/boms.git"
BOMS_REPOSITORY_PROPERTY = "boms.repository"
BOMS_BRANCH_PROPERTY = "boms.branch"
TESTSUITE_VERSION = "EJB-CLIENT-TESTSUITE"
MVN_BUILD_OPTIONS = "-DskipTests=true"

Expand All @@ -55,15 +51,13 @@ def wildFlyDir = new File(TARGET_DIR, WILDFLY_NAME)
cloneProject(WILDFLY_REPOSITORY_PROPERTY, WILDFLY_BRANCH_PROPERTY, WILDFLY_REPOSITORY, WILDFLY_NAME)
changeDependencyVersion(EJB_CLIENT_VERSION_NAME, TESTSUITE_VERSION, wildFlyDir)
changeDependencyVersion(HTTP_CLIENT_VERSION_NAME, TESTSUITE_VERSION, wildFlyDir)
setProjectVersion(TESTSUITE_VERSION, wildFlyDir)
// testsuite/test-product-conf has hard-coded version value, that should not be overridden, but it is in previous command. So we need to skip this TS section in this WF build.
// https://github.com/wildfly/wildfly/blob/main/testsuite/test-product-conf/pom.xml
executeCmd("sed -i s|<module>test-product-conf</module>||g testsuite/pom.xml", null, wildFlyDir, false)
buildProject(wildFlyDir, "-Dts.noSmoke")
renameWildFlyBuildDirectory(getProjectVersion(wildFlyDir), wildFlyDir)

def bomDir = new File(TARGET_DIR, BOMS_NAME)
cloneProject(BOMS_REPOSITORY_PROPERTY, BOMS_BRANCH_PROPERTY, BOMS_REPOSITORY, BOMS_NAME)
setProjectVersion(TESTSUITE_VERSION, bomDir)
changeDependencyVersion("version.server", getProjectVersion(wildFlyDir), bomDir)
buildProject(bomDir)


def executeCmd(command, env, dir, verbose) {
println "Executing command " + command + " in directory " + dir
Expand Down

0 comments on commit 3f8ece7

Please sign in to comment.