forked from IGNF/validator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-openjdk11.sh
executable file
·34 lines (23 loc) · 1009 Bytes
/
build-openjdk11.sh
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
#!/bin/bash
echo "-----------------------------------------------------------------------"
echo "-- Display informations"
echo "-----------------------------------------------------------------------"
# XSD validation errors
# export LANG=en_EN.UTF-8
# export LC_ALL=en_EN.UTF-8
export OGR2OGR_PATH=${OGR2OGR_PATH:-ogr2ogr}
echo "-- OGR2OGR_PATH : ${OGR2OGR_PATH}"
echo "-- GDAL_VERSION : $($OGR2OGR_PATH --version)"
echo ""
echo "-----------------------------------------------------------------------"
echo "-- Run 'mvn formatter:validate' to ensure that code is formatted"
echo "-----------------------------------------------------------------------"
mvn formatter:validate || {
echo "please run 'mvn formatter:format' before commiting"
exit 1
}
echo ""
echo "-----------------------------------------------------------------------"
echo "-- Run 'mvn clean package' to build running unit tests"
echo "-----------------------------------------------------------------------"
mvn clean package