.gitlab-ci.yml 1.2 KB
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
# This is the name of the job.
# You can choose it freely.
Daniel Eggert's avatar
Daniel Eggert committed
18
build_gms-aux:
Daniel Eggert's avatar
Daniel Eggert committed
19
20
21
22
23
24
25
26
27
28
29
30
  # 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
    - echo "Buildung and installing gms-aux modules"
32
33
    - mvn verify
    
Daniel Eggert's avatar
Daniel Eggert committed
34
35
36
37
codecov:
  script: 
    - mvn cobertura:cobertura

Daniel Eggert's avatar
Daniel Eggert committed
38
after_script:
Daniel Eggert's avatar
Daniel Eggert committed
39
  - bash <(curl -s https://codecov.io/bash) -t BosTy5hxtoueLnZP3uyM
Daniel Eggert's avatar
Daniel Eggert committed
40
41
42
43
44
45
46
47
48
49
50
51
52
    
#pages:
#  stage: deploy
#  dependencies:
#    - build_gms-aux
#  script:
#    - mv usgs-api/target/coverage-reports/jacoco-ut/ public/
#  artifacts:
#    paths:
#      - public
#    expire_in: 30 days
#  only:
#    - dev