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

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

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

cazenave's avatar
cazenave committed
23
build_vitamui:dev:
cazenave's avatar
cazenave committed
24
  image: maven:3.6.3-jdk-8
cazenave's avatar
cazenave committed
25
  stage: build_vitamui
cazenave's avatar
cazenave committed
26
  only:
cazenave's avatar
cazenave committed
27
    - master 
cazenave's avatar
cazenave committed
28
29
  <<: *runner-docker
  script:
cazenave's avatar
cazenave committed
30
31
    - mvn  clean install -Pdev -DskipTests 
  artifacts: 
cazenave's avatar
cazenave committed
32
    paths:
cazenave's avatar
cazenave committed
33
    - "*/target"
cazenave's avatar
cazenave committed
34

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