forked from linagora/linshare-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
61 lines (55 loc) · 1.27 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
stages:
- prepare
- check
- build
variables:
MAVEN_OPTS: "-Djava.awt.headless=true -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
.cache-tpl: &cache-tpl
key: "$CI_COMMIT_REF_SLUG"
paths:
- $CI_PROJECT_DIR/.m2/repository
policy: pull
.curl-tpl: &curl-tpl
variables:
GIT_STRATEGY: none
tags:
- curl
check_author:
image: docker-registry.linagora.com:5000/lgs-releases/gitlab-integrity-checks:latest
stage: check
variables:
GIT_DEPTH: "1"
tags:
- ultralight
script:
- check_author.py check "$GITLAB_USER_EMAIL" "$GITLAB_USER_NAME" --no-accents
except:
refs:
- master@linagora/lgs/linshare/products/linshare-core
- tags@linagora/lgs/linshare/products/linshare-core
- /^release-.*/@linagora/lgs/linshare/products/linshare-core
# deactivated.
.prepare:
image: maven:3.5-jdk-8
stage: prepare
tags:
- docker
cache:
<<: *cache-tpl
policy: pull-push
script:
- mvn dependency:go-offline --batch-mode
- mvn dependency:resolve --batch-mode
- mvn dependency:resolve-plugins --batch-mode
# deactivated.
.build:
stage: build
tags:
- docker
image: maven:3.5-jdk-8
cache:
<<: *cache-tpl
script:
- apt-get update
- apt-get -y install libreoffice
- mvn -X clean test