.gitlab-ci.yml 936 Bytes
Newer Older
1
2
stages:
  - build
Matija Obreza's avatar
Matija Obreza committed
3

4
run tests in branches:
Matija Obreza's avatar
Matija Obreza committed
5
  stage:           build
Maxym Borodenko's avatar
Java 11  
Maxym Borodenko committed
6
  image:           maven:3-openjdk-11
7
  script:
Matija Obreza's avatar
Matija Obreza committed
8
    - MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B -U
9
10
11
  except:
    - master
    - tags
Matija Obreza's avatar
Matija Obreza committed
12

13
publish maven snapshot artifacts:
Matija Obreza's avatar
Matija Obreza committed
14
    stage:         build
Maxym Borodenko's avatar
Java 11  
Maxym Borodenko committed
15
    image:         maven:3-openjdk-11
Matija Obreza's avatar
Matija Obreza committed
16
17
    before_script:
      - echo "${GPG_KEY_SECRET}" | gpg --batch --import
18
      - gpg --list-keys
Matija Obreza's avatar
Matija Obreza committed
19
    script:
20
21
22
23
24
      - mvn clean deploy --settings .ci-maven-settings.xml -B -U
    only:
      - master

publish maven artifacts:
Matija Obreza's avatar
Matija Obreza committed
25
    stage:         build
Maxym Borodenko's avatar
Java 11  
Maxym Borodenko committed
26
    image:         maven:3-openjdk-11
Matija Obreza's avatar
Matija Obreza committed
27
28
    before_script:
      - echo "${GPG_KEY_SECRET}" | gpg --batch --import
29
      - gpg --list-keys
Matija Obreza's avatar
Matija Obreza committed
30
31
32
      - export GPG_TTY=$(tty) # gpg: signing failed: Inappropriate ioctl for device
    script:
      - mvn -P release clean deploy --settings .ci-maven-settings.xml -B -U
33
    only:
Matija Obreza's avatar
Matija Obreza committed
34
      - /^geo\-tools\-/