.gitlab-ci.yml 834 Bytes
Newer Older
cazenave's avatar
cazenave committed
1
2
3
4
5
6
7
variables:
  GIT_SSL_NO_VERIFY: "true"
  DOCKER_DRIVER: overlay2
  DOCKER_TLS_CERTDIR: ""
  MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository"
  
stages:
cazenave's avatar
cazenave committed
8
9
  - build_vitamui
  - build_api
cazenave's avatar
cazenave committed
10
11
12
13
14
15
16
17
18
19

.machine: &runner-shell
    tags:
        - dev, shell

.machine: &runner-docker
    tags:
        - dev, docker 


cazenave's avatar
cazenave committed
20
build_vitamui:dev:
cazenave's avatar
cazenave committed
21
22
23
  image: maven:3.6.3-jdk-8
  stage: build_java
  only:
cazenave's avatar
cazenave committed
24
    - master
cazenave's avatar
cazenave committed
25
26
27
  <<: *runner-docker
  script:
    - mvn clean install -Pdev -DskipTests
cazenave's avatar
cazenave committed
28
  dependencies: []     
cazenave's avatar
cazenave committed
29

cazenave's avatar
cazenave committed
30
build_security-internal:dev:
cazenave's avatar
cazenave committed
31
  image: maven:3.6.3-jdk-8
cazenave's avatar
cazenave committed
32
  stage: build_api
cazenave's avatar
cazenave committed
33
34
35
36
37
38
39
40
41
  only:
    - master
  <<: *runner-docker
  script:
    - cd api/api-security/security-internal
    - mvn spring-boot:run -Dspring-boot.run.noverify
  artifacts:
    paths:
     - api/api-security/security-internal/target/
cazenave's avatar
cazenave committed
42
  dependencies:
cazenave's avatar
cazenave committed
43
     - build_vitamui:dev
cazenave's avatar
cazenave committed
44
      
cazenave's avatar
cazenave committed
45