-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
35 lines (29 loc) · 933 Bytes
/
.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
# included templates
include:
- 'https://gitlab.com/senbox-org/snap-engine/raw/11.x/.gitlab-ci.yml'
windows:
variables:
MAVEN_CFG_DIR: .m2
.add_libs: &add_libs
- apt-get -qq update && apt-get -qq -y install libgfortran5
mvn-build:
# Override .mvn-base > before_script to add 1 more line
before_script:
- *add_libs
- !reference [".mvn-base", "before_script"]
artifacts:
paths:
- "${MAVEN_PROJECT_DIR}/**/target/*.jar"
- "${MAVEN_PROJECT_DIR}/**/target/classes"
- "${MAVEN_PROJECT_DIR}/**/target/*.nbm"
- "${MAVEN_PROJECT_DIR}/**/target/site"
- "${MAVEN_PROJECT_DIR}/**/target/surefire-reports"
- "${MAVEN_PROJECT_DIR}/opttbx-kit/target/netbeans_clusters/opttbx"
mvn-deploy-snapshot:
before_script:
- *add_libs
- !reference [".mvn-base", "before_script"]
mvn-deploy-release:
before_script:
- *add_libs
- !reference [".mvn-base", "before_script"]