Skip to content

Commit 0efd14d

Browse files
author
Tim Middleton
authored
Update ci/cd (#60)
1 parent 62a8c69 commit 0efd14d

File tree

3 files changed

+34
-59
lines changed

3 files changed

+34
-59
lines changed

.github/workflows/test-against-snapshot-1440.yml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
branch:
47-
- v14.1.1.0
46+
coherenceVersion:
47+
- 14.1.1-0-13-SNAPSHOT
4848

4949
steps:
5050
- name: Checkout
@@ -66,22 +66,6 @@ jobs:
6666
- name: Print Versions
6767
run: mvn -version && ant -version
6868

69-
- name: Build Coherence Snapshot
70-
shell: bash
71-
env:
72-
COH_BRANCH: ${{ matrix.branch }}
73-
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
74-
run: |
75-
# Checkout the git repo for coherence snapshot and build
76-
DIR=`pwd`
77-
CLONE_DIR=coherence-$COH_BRANCH
78-
cd /tmp
79-
git clone https://github.com/oracle/coherence.git $CLONE_DIR
80-
cd $CLONE_DIR
81-
git checkout $COH_BRANCH
82-
mvn --file prj/pom.xml --batch-mode -e -DskipTests clean install
83-
cd $DIR
84-
8569
- name: Set up JDK 11 for Plugin
8670
uses: actions/setup-java@v3
8771
with:
@@ -95,22 +79,12 @@ jobs:
9579
9680
- name: Verify
9781
env:
98-
COH_BRANCH: ${{ matrix.branch }}
82+
COH_VERSION: ${{ matrix.coherenceVersion }}
9983
shell: bash
10084
run: |
101-
CLONE_DIR=coherence-$COH_BRANCH
102-
POM_FILE=/tmp/${CLONE_DIR}/prj/coherence-bom/pom.xml
103-
if [ ! -r $POM_FILE ] ; then
104-
POM_FILE=/tmp/${CLONE_DIR}/prj/pom.xml
105-
fi
106-
COH_VERSION=`cat ${POM_FILE} | grep '<revision>' | sed -e 's,^.*<revision>,,' -e 's,</revision>.*$,,'`
107-
10885
echo "Running verify against $COH_VERSION"
10986
mvn --file coherence-visualvm-tests/coherence-visualvm-tests-ce/pom.xml --batch-mode -nsu -e -Dcoherence.version=$COH_VERSION clean install
11087
111-
echo "Removing Coherence cloned directory"
112-
CLONE_DIR=coherence-$COH_BRANCH
113-
rm -rf /tmp/${CLONE_DIR}
11488
11589
- name: Build Artifacts test logs
11690
uses: actions/upload-artifact@v3

.github/workflows/test-against-snapshot.yml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ jobs:
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
branch:
47-
- main
46+
coherenceVersion:
47+
- 23.03-SNAPSHOT
48+
- 22.06.5-SNAPSHOT
49+
- 22.06.4-SNAPSHOT
4850

4951
steps:
5052
- name: Checkout
@@ -66,48 +68,22 @@ jobs:
6668
- name: Print Versions
6769
run: mvn -version && ant -version
6870

69-
- name: Build Coherence Snapshot
70-
shell: bash
71-
env:
72-
COH_BRANCH: ${{ matrix.branch }}
73-
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
74-
run: |
75-
# Checkout the git repo for coherence snapshot and build
76-
DIR=`pwd`
77-
CLONE_DIR=coherence-$COH_BRANCH
78-
cd /tmp
79-
git clone https://github.com/oracle/coherence.git $CLONE_DIR
80-
cd $CLONE_DIR/prj
81-
make all
82-
cd $DIR
83-
8471
- name: Build Plugin
8572
shell: bash
8673
run: |
8774
mvn --file pom.xml --batch-mode -e -DskipTests clean install
8875
8976
- name: Verify
9077
env:
91-
COH_BRANCH: ${{ matrix.branch }}
78+
COH_VERSION: ${{ matrix.coherenceVersion }}
9279
shell: bash
9380
run: |
94-
CLONE_DIR=coherence-$COH_BRANCH
95-
POM_FILE=/tmp/${CLONE_DIR}/prj/coherence-bom/pom.xml
96-
if [ ! -r $POM_FILE ] ; then
97-
POM_FILE=/tmp/${CLONE_DIR}/prj/pom.xml
98-
fi
99-
COH_VERSION=`cat ${POM_FILE} | grep '<revision>' | sed -e 's,^.*<revision>,,' -e 's,</revision>.*$,,'`
100-
10181
echo "Running verify against $COH_VERSION"
10282
mvn --file coherence-visualvm-tests/coherence-visualvm-tests-ce/pom.xml --batch-mode -nsu -e -Dcoherence.version=$COH_VERSION clean install
10383
10484
echo "Running Topics tests"
10585
mvn --file coherence-visualvm-tests/coherence-visualvm-tests-topics/pom.xml -P topics --batch-mode -nsu -e -Dcoherence.version=$COH_VERSION clean install
10686
107-
echo "Removing Coherence cloned directory"
108-
CLONE_DIR=coherence-$COH_BRANCH
109-
rm -rf /tmp/${CLONE_DIR}
110-
11187
- name: Build Artifacts test logs
11288
uses: actions/upload-artifact@v3
11389
if: failure()

pom.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<!--
33
4-
Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
4+
Copyright (c) 2020, 2023 Oracle and/or its affiliates. All rights reserved.
55
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66
77
This code is free software; you can redistribute it and/or modify it
@@ -365,4 +365,29 @@
365365
</build>
366366
</profile>
367367
</profiles>
368+
369+
<repositories>
370+
<repository>
371+
<id>ossrh-staging</id>
372+
<name>OSS Sonatype Staging</name>
373+
<url>https://oss.sonatype.org/content/groups/staging/</url>
374+
<snapshots>
375+
<enabled>false</enabled>
376+
</snapshots>
377+
<releases>
378+
<enabled>true</enabled>
379+
</releases>
380+
</repository>
381+
382+
<repository>
383+
<id>snapshots-repo</id>
384+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
385+
<releases>
386+
<enabled>false</enabled>
387+
</releases>
388+
<snapshots>
389+
<enabled>true</enabled>
390+
</snapshots>
391+
</repository>
392+
</repositories>
368393
</project>

0 commit comments

Comments
 (0)