.gitlab-ci.yml 1.82 KB
Newer Older
alexander.weigl's avatar
alexander.weigl committed
1 2
image: key-ant-openjdk-8:latest

alexander.weigl's avatar
alexander.weigl committed
3 4 5 6 7
cache:
  paths:
    - .m2/

variables:
Alexander Weigl's avatar
Alexander Weigl committed
8 9 10 11
  MAVEN_OPTS: >-
    -Dmaven.repo.local=${CI_PROJECT_DIR}/.m2
    -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN
    -Dorg.slf4j.simpleLogger.showDateTime=true
12
  GIT_SSL_NO_VERIFY: "true"
13

Alexander Weigl's avatar
Alexander Weigl committed
14 15 16 17 18 19 20
stages:
  - setup
  - build
  - test
  - deploy

setup:
Alexander Weigl's avatar
Alexander Weigl committed
21
  stage: setup
Alexander Weigl's avatar
Alexander Weigl committed
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
  script: >
    COMPONENTS=keydeps/lib/components/
    mvn install:install-file -Dfile=$COMPONENTS/key.core.jar \
                               -DgroupId=key-project-psdbg \
                               -DartifactId=key.core \
                               -Dversion=2.7-SNAPSHOT \
                               -Dpackaging=jar

    mvn install:install-file -Dfile=$COMPONENTS/key.ui.jar \
                               -DgroupId=key-project-psdbg \
                               -DartifactId=key.ui \
                               -Dversion=2.7-SNAPSHOT \
                               -Dpackaging=jar

    mvn install:install-file -Dfile=$COMPONENTS/key.util.jar \
                               -DgroupId=key-project-psdbg \
                               -DartifactId=key.util \
                               -Dversion=2.7-SNAPSHOT \
                               -Dpackaging=jar

    mvn install:install-file -Dfile=$COMPONENTS/../libs/recoderKey.jar\
                               -DgroupId=key-project-psdbg \
                               -DartifactId=recoder \
                               -Dversion=2.7\
                               -Dpackaging=jar

alexander.weigl's avatar
alexander.weigl committed
48

alexander.weigl's avatar
alexander.weigl committed
49
build:
Alexander Weigl's avatar
Alexander Weigl committed
50
  stage: build
alexander.weigl's avatar
alexander.weigl committed
51 52
  script: "mvn compile -B -T 2"

Alexander Weigl's avatar
Alexander Weigl committed
53 54
test:
  stage: test
alexander.weigl's avatar
alexander.weigl committed
55 56
  script: "mvn test -B"

alexander.weigl's avatar
alexander.weigl committed
57
deploy:
Alexander Weigl's avatar
Alexander Weigl committed
58
  stage: deploy
alexander.weigl's avatar
alexander.weigl committed
59
  script: 
Alexander Weigl's avatar
Alexander Weigl committed
60
    - "mvn package -DperformRelease=true -DcreateChecksum=true -DskipTests=true -B"
alexander.weigl's avatar
alexander.weigl committed
61 62 63
  artifacts: 
    paths:
      - target/*jar
alexander.weigl's avatar
alexander.weigl committed
64 65
      - target/site/*
  allow_failure: true