.gitlab-ci.yml 866 Bytes
Newer Older
Daniel Eggert's avatar
Daniel Eggert committed
1
2
3
4
5
6
7
8
# These are the default stages.
# You don't need to explicitly define them.
# But you could define any stages you want.
stages:
  - build
  - test
  - deploy

Daniel Eggert's avatar
Daniel Eggert committed
9
10
11
12
13
14
15
cache:
  paths:
    - .m2/

variables:
  MAVEN_OPTS: "-Dmaven.repo.local=.m2"

Daniel Eggert's avatar
Daniel Eggert committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This is the name of the job.
# You can choose it freely.
maven_build:
  # A job is always executed within a stage.
  # If no stage is set, it defaults to 'test'.
  stage: test
  # Since we require Maven for this job,
  # we can restrict the job to runners with a certain tag.
  # Of course, it is our duty to actually configure a runner
  # with the tag 'maven' and a working maven installation
  tags:
    - maven
  # Here you can execute arbitrate terminal commands.
  # If any of the commands returns a non zero exit code the job fails.
  script:
Daniel Eggert's avatar
Daniel Eggert committed
31
32
    - echo "Buildung and installing gms-aux modules"
    - mvn clean install