-
Notifications
You must be signed in to change notification settings - Fork 280
46 lines (42 loc) · 1.78 KB
/
integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Downstream integration build (GeoServer)
on:
# trigger on PR, but only on main branch, the checkouts of the downstream projects are also targeting main (default branch)
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/checkout@v1
- name: Maven repository caching
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: gwc-integration-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
integration-${{ runner.os }}-maven-
- name: Build GeoWebCache (no tests, prepare fresh artifacts)
run: mvn -B clean install -T2 -Dall --file geowebcache/pom.xml -DskipTests
- name: Checkout GeoServer
run: |
cd ~
echo "Preparing git ssh checkouts"
mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
echo "Checking out GeoServer"
mkdir geoserver
git clone https://github.com/geoserver/geoserver.git geoserver
- name: Build GeoServer with tests
run: |
export MAVEN_OPTS="-Xmx512m $TEST_OPTS -XX:+UseStringDeduplication -XX:+UseG1GC -XX:MaxHeapFreeRatio=30 -XX:MinHeapFreeRatio=10"
cd ~
mvn -B -f geoserver/src/pom.xml install -nsu -Prelease -Dspotless.apply.skip=true -DskipTests
mvn -B -f geoserver/src/community/pom.xml install -nsu -DcommunityRelease -Dspotless.apply.skip=true -DskipTests
mvn -B -f geoserver/src/pom.xml test -T2 -nsu -Djvm.opts="$TEST_OPTS" -Prelease -Dspotless.apply.skip=true
- name: Remove SNAPSHOT jars from repository
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}