forked from geotools/geotools
-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (34 loc) · 1.1 KB
/
db2_online.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
name: Db2 online tests
on: [pull_request]
jobs:
build:
name: Java ${{ matrix.java }}
runs-on: [ubuntu-latest]
strategy:
matrix:
java: [11]
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- uses: actions/checkout@v2
- name: Maven repository caching
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: gt-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
gt-maven-
- name: Setup test environment for IBM Db2
run: |
./build/ci/db2/start-db2.sh
./build/ci/db2/setup-db2.sh
- name: Build GeoTools dependent modules (no tests)
run: mvn -B clean install -T2 -Dall -pl :gt-jdbc-db2 -DskipTests -am
- name: Test Db2 data store
run: mvn -B verify -pl :gt-jdbc-db2 -Ponline -Dfmt.skip=true
- name: Remove SNAPSHOT jars from repository
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}