Skip to content
.gitlab-ci.yml 787 B
Newer Older
Sonia Zorba's avatar
Sonia Zorba committed
stages:
  - build
  - test
  - deploy

build_gms_client:
  stage: build
  tags:
    - docker
  script:
    - cd gms-client/gms-client
    - mvn clean package -DskipTests -DfinalName=gms-client
  artifacts:
    paths:
      - gms-client/gms-client/target/gms-client.jar
      - gms-client/gms-client/pom.xml
    expire_in: 7 days
  only:
    - master

test_gms_client:
  stage: test
  tags:
    - docker
  script:
    - cd gms-client/gms-client
    - mvn clean test
  only:
    - master

deploy_gms_client:
  stage: deploy
  tags:
    - docker
  script:
    - mvn deploy:deploy-file
        -Dfile=gms-client/gms-client/target/gms-client.jar
        -DrepositoryId=ia2.snapshots
        -DpomFile=gms-client/gms-client/pom.xml
        -Durl=${IA2_MVN_REPO_SNAPSHOTS}
  only:
    - master