Skip to content

Commit 3f8ece7

Browse files
authored
Merge pull request #66 from marekkopecky/ci2
Improve CI testing
2 parents 08ecb88 + 90a53e9 commit 3f8ece7

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.github/workflows/integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This workflow will build a Java project with Maven
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
33

44
name: EJB Test Suite
55

@@ -11,11 +11,11 @@ jobs:
1111
build-test-matrix:
1212
name: ${{ matrix.jdk-distribution}}-${{ matrix.jdk-version }}-${{ matrix.os }}
1313
runs-on: ${{ matrix.os }}
14-
timeout-minutes: 15
14+
timeout-minutes: 120
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
os: [ubuntu-latest, windows-latest]
18+
os: [ubuntu-latest]
1919
jdk-distribution: [temurin]
2020
jdk-version: [17]
2121
steps:

snapshots/src/main/script/createSnapshots.groovy

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ WILDFLY_NAME = "wildfly"
2828
WILDFLY_REPOSITORY = "https://github.com/wildfly/wildfly"
2929
WILDFLY_REPOSITORY_PROPERTY = "wildfly.repository"
3030
WILDFLY_BRANCH_PROPERTY = "wildfly.branch"
31-
BOMS_NAME = "boms"
32-
BOMS_REPOSITORY = "https://github.com/wildfly/boms.git"
33-
BOMS_REPOSITORY_PROPERTY = "boms.repository"
34-
BOMS_BRANCH_PROPERTY = "boms.branch"
3531
TESTSUITE_VERSION = "EJB-CLIENT-TESTSUITE"
3632
MVN_BUILD_OPTIONS = "-DskipTests=true"
3733

@@ -55,15 +51,13 @@ def wildFlyDir = new File(TARGET_DIR, WILDFLY_NAME)
5551
cloneProject(WILDFLY_REPOSITORY_PROPERTY, WILDFLY_BRANCH_PROPERTY, WILDFLY_REPOSITORY, WILDFLY_NAME)
5652
changeDependencyVersion(EJB_CLIENT_VERSION_NAME, TESTSUITE_VERSION, wildFlyDir)
5753
changeDependencyVersion(HTTP_CLIENT_VERSION_NAME, TESTSUITE_VERSION, wildFlyDir)
54+
setProjectVersion(TESTSUITE_VERSION, wildFlyDir)
55+
// 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.
56+
// https://github.com/wildfly/wildfly/blob/main/testsuite/test-product-conf/pom.xml
57+
executeCmd("sed -i s|<module>test-product-conf</module>||g testsuite/pom.xml", null, wildFlyDir, false)
5858
buildProject(wildFlyDir, "-Dts.noSmoke")
5959
renameWildFlyBuildDirectory(getProjectVersion(wildFlyDir), wildFlyDir)
6060

61-
def bomDir = new File(TARGET_DIR, BOMS_NAME)
62-
cloneProject(BOMS_REPOSITORY_PROPERTY, BOMS_BRANCH_PROPERTY, BOMS_REPOSITORY, BOMS_NAME)
63-
setProjectVersion(TESTSUITE_VERSION, bomDir)
64-
changeDependencyVersion("version.server", getProjectVersion(wildFlyDir), bomDir)
65-
buildProject(bomDir)
66-
6761

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

0 commit comments

Comments
 (0)