forked from Universite-Gustave-Eiffel/NoiseModelling
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.64 KB
/
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
name: CI
on: [ push, pull_request, workflow_dispatch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: SPalominos/[email protected]
with:
psql_version: '9.6'
pgis_version: '2.5'
docker_image: 'postgis/postgis'
db_password: 'orbisgis'
db_user: 'orbisgis'
db_name: 'orbisgis_db'
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Building
run: |
mvn test install -B
cd wps_scripts && ./gradlew test --info --stacktrace
- name: Deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
if: env.MAVEN_USERNAME != null
run: mvn clean deploy -B -P maven-deploy
- name: Clean
run: rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- name: Cache
uses: actions/cache@v2
with:
path: |
$HOME/.m2/
$HOME/.gradle/caches/
$HOME/.gradle/wrapper/
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
#Production of the archive
- name: Unzip production artifacts
run: cd wps_scripts && ./gradlew assembleDist && unzip build/distributions/scriptrunner.zip
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: NoiseModelling_without_gui.zip
path: wps_scripts/scriptrunner/