-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
84 lines (79 loc) · 3.12 KB
/
.gitlab-ci.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# included templates
include:
- 'https://gitlab.com/senbox-org/snap-engine/raw/master/.gitlab-ci.yml'
variables:
SNAP_DIR: /home/snap/esa-snap-software
DATA_PATH: /home/snap/testData
LIB_HDF_ARGS: >-
-Dncsa.hdf.hdflib.HDFLibrary.hdflib=${SNAP_DIR}/snap/modules/lib/amd64/libjhdf.so
-Dncsa.hdf.hdf5lib.H5.hdf5lib=${SNAP_DIR}/snap/modules/lib/amd64/libjhdf5.so
linux:
stage: test
tags: [kube]
extends: mvn-build
variables:
MAVEN_CLI_OPTS: >-
--no-transfer-progress --batch-mode --errors --fail-at-end --show-version -DdeployAtEnd=false -DargLine="-Xmx8G"
${LIB_HDF_ARGS}
-Dsnap.userdir=${SNAP_DIR}
-Dsnap.reader.tests.execute=true -Dsnap.reader.tests.data.dir=${DATA_PATH}
-Dsnap.reader.tests.class.name=${CLASS_PATH}
-Dsnap.reader.tests.failOnMissingData=true
script:
- mvn $MAVEN_CLI_OPTS test
parallel:
matrix:
- CLASS_PATH: [org.esa.s1tbx, org.esa.s2tbx, org.esa.s3tbx, com.iceye, org.csa.rstb, org.esa.smos]
macos:
stage: test
tags: [mac]
variables:
# DATA_PATH: /Volumes/snap-ext/SNAP/testData
DATA_PATH: /Users/csro/STEP_Data_S3
# JAVA_HOME: /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
JAVA_HOME: /Library/Java/JavaVirtualMachines/liberica-jdk-21-full.jdk/Contents/Home
MAVEN_CLI_OPTS: >-
--no-transfer-progress --batch-mode --errors --fail-at-end --show-version -DdeployAtEnd=false -DargLine="-Xmx8G"
${LIB_HDF_ARGS}
-Duser.home=/Users/csro/apache-maven-3.9.9 -Dsnap.userdir=/Users/csro
-Dsnap.reader.tests.execute=true -Dsnap.reader.tests.data.dir=${DATA_PATH}
-Dsnap.reader.tests.class.name=${CLASS_PATH}
-Dsnap.reader.tests.failOnMissingData=true
MAVEN_SETTINGS_FILE: /Users/csro/apache-maven-3.9.9/conf/settings.xml
needs: []
script:
- mvn -q $MAVEN_CLI_OPTS test
parallel:
matrix:
- CLASS_PATH: [org.esa.s1tbx, org.esa.s2tbx, org.esa.s3tbx, com.iceye, org.csa.rstb, org.esa.smos]
windows:
stage: test
tags: [windows]
variables:
GIT_STRATEGY: clone
FF_ENABLE_JOB_CLEANUP: 'true'
FF_USE_WINDOWS_LEGACY_PROCESS_STRATEGY: 'false'
DATA_PATH: 'D:\\testData'
CLASS_PATH: org.esa.s2tbx
LIB_HDF_ARGS: >-
-Dncsa.hdf.hdflib.HDFLibrary.hdflib=%SNAP_DIR%\\snap\\modules\\lib\\amd64\\jhdf.dll
-Dncsa.hdf.hdf5lib.H5.hdf5lib=%SNAP_DIR%\\snap\modules\\lib\amd64\\jhdf5.dll
-Dfile.encoding=Windows-1252
MAVEN_CLI_OPTS: >-
--no-transfer-progress --batch-mode --errors --fail-at-end --show-version -DdeployAtEnd=false -DargLine="-Xmx8G"
%LIB_HDF_ARGS%
-Dsnap.userdir=%SNAP_DIR%
-Dsnap.reader.tests.execute=true -Dsnap.reader.tests.data.dir=%DATA_PATH%
-Dsnap.reader.tests.class.name=%CLASS_PATH%
-Dsnap.reader.tests.failOnMissingData=true
MAVEN_SETTINGS_FILE: C:\\Users\\Administrator\\AppData\\Roaming\\apache-maven\\conf\\settings.xml
script:
- mvn %MAVEN_CLI_OPTS% test
parallel:
matrix:
- CLASS_PATH: [org.esa.s1tbx, org.esa.s2tbx, org.esa.s3tbx, com.iceye, org.csa.rstb, org.esa.smos]
# Run jobs in parrallel on windows VM can cause failures
retry: 2
mvn-sonar:
rules:
- when: never