no-default.yml 2.02 KB
Newer Older
1
include: ci-templates/core.yml
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85

workflow:
  rules:
    - if: $CI_COMMIT_BRANCH && $CI_COMMIT_REF_NAME =~ /^kinetic-.*/
      variables:
        DEFAULT_DISTRO: "kinetic"
    - if: $CI_COMMIT_BRANCH && $CI_COMMIT_REF_NAME =~ /^melodic-.*/
      variables:
        DEFAULT_DISTRO: "melodic"
    - if: $CI_COMMIT_BRANCH && $CI_COMMIT_REF_NAME =~ /^noetic-.*/
      variables:
        DEFAULT_DISTRO: "noetic"
    - if: $CI_COMMIT_TAG && $CI_COMMIT_REF_NAME =~ /^kinetic-.*/
      variables:
        DEFAULT_DISTRO: "kinetic"
        DEPLOY: "true"
    - if: $CI_COMMIT_TAG && $CI_COMMIT_REF_NAME =~ /^melodic-.*/
      variables:
        DEFAULT_DISTRO: "melodic"
        DEPLOY: "true"
    - if: $CI_COMMIT_TAG && $CI_COMMIT_REF_NAME =~ /^noetic-.*/
      variables:
        DEFAULT_DISTRO: "noetic"
        DEPLOY: "true"
    - if: $CI_COMMIT_TAG
      variables:
        DEPLOY: "true"
    - if: $CI_COMMIT_BRANCH


industrial_ci_kinetic:
  extends: .industrial_ci
  variables:
    ROS_DISTRO: kinetic
  rules:
    - if: $DEPLOY
      when: never
    - if: $DEFAULT_DISTRO == "kinetic"
    - if: $BUILD_KINETIC

industrial_ci_melodic:
  extends: .industrial_ci
  variables:
    ROS_DISTRO: melodic
  rules:
    - if: $DEPLOY
      when: never
    - if: $DEFAULT_DISTRO == "melodic"
    - if: $BUILD_MELODIC

industrial_ci_noetic:
  extends: .industrial_ci
  variables:
    ROS_DISTRO: noetic
  rules:
    - if: $DEPLOY
      when: never
    - if: $DEFAULT_DISTRO == "noetic"
    - if: $BUILD_NOETIC


industrial_kinetic_deploy:
  extends:
    - industrial_ci_kinetic
    - .industrial_ci_deploy
  rules:
    - if: $DEPLOY && $DEFAULT_DISTRO == "kinetic"
    - if: $DEPLOY && $BUILD_KINETIC

industrial_melodic_deploy:
  extends:
    - industrial_ci_melodic
    - .industrial_ci_deploy
  rules:
    - if: $DEPLOY && $DEFAULT_DISTRO == "melodic"
    - if: $DEPLOY && $BUILD_MELODIC

industrial_noetic_deploy:
  extends:
    - industrial_ci_noetic
    - .industrial_ci_deploy
  rules:
    - if: $DEPLOY && $DEFAULT_DISTRO == "noetic"
    - if: $DEPLOY && $BUILD_NOETIC