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

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

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
publish maven snapshot artifacts:
    stage:                build
    image:                maven:3-jdk-8
    script:
      - echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import
      - gpg --list-keys
      - mvn clean deploy --settings .ci-maven-settings.xml -B -U
    only:
      - master

publish maven artifacts:
    stage:                build
    image:                maven:3-jdk-8
    script:
      - echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import
      - gpg --list-keys
      - mvn clean deploy --settings .ci-maven-settings.xml -B -U -Prelease
    only:
      - tags