.gitlab-ci.yml 4.26 KB
Newer Older
Michaël Roynard's avatar
Michaël Roynard committed
1
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
variables:
    CONAN_PROFILE: "gcc7"                                                                               # profile to use with conan
    CONAN_BINTRAY_REMOTE_NAME: "dutiona-lrde"                                                           # Conan remote name
    CONAN_BINTRAY_REMOTE_URL: "https://api.bintray.com/conan/dutiona/lrde"                              # Conan remote name
    CONAN_BINTRAY_USER: "dutiona"                                                                       # Conan user name
    CONAN_LRDE_REMOTE_NAME: "lrde-public"                                                               # Conan remote name
    CONAN_LRDE_REMOTE_URL: "https://artifactory.lrde.epita.fr/artifactory/api/conan/lrde-public"        # Conan remote name
    CONAN_LRDE_USER: "mroynard"                                                                         # Conan user name
    NAME: "pybind11"                                                                                    # Conan package name
    TAG: "testing"                                                                                      # Conan tag
    VERSION: "2.2.4"                                                                                    # Version to build
    RELEASE_TYPE: "Release"                                                                             # default release type

stages:
    - build
    - package

.job-basic-build-linux: &distcheck-basic-build-linux
    stage: build
    image: mroynard/ubuntu-toolset:stable
    script:
        - set -e
        - conan create
              --build missing
              -pr $CONAN_PROFILE
              . $NAME/$VERSION@$CONAN_LRDE_USER/$TAG-$CONAN_PROFILE

distcheck-build-linux-gcc7-release:
    <<: *distcheck-basic-build-linux
    variables:

distcheck-build-linux-gcc7-debug:
    <<: *distcheck-basic-build-linux
    variables:
        RELEASE_TYPE: "Debug"

distcheck-build-linux-gcc8-release:
    <<: *distcheck-basic-build-linux
    variables:
        CC: "gcc-8"
        CXX: "g++-8"
        CONAN_PROFILE: "gcc8"

distcheck-build-linux-gcc8-debug:
    <<: *distcheck-basic-build-linux
    variables:
        CC: "gcc-8"
        CXX: "g++-8"
        CONAN_PROFILE: "gcc8"
        RELEASE_TYPE: "Debug"

distcheck-build-linux-clang6-release:
    <<: *distcheck-basic-build-linux
    variables:
        CC: "clang-6.0"
        CXX: "clang++-6.0"
        CONAN_PROFILE: "clang6"

distcheck-build-linux-clang6-debug:
    <<: *distcheck-basic-build-linux
    variables:
        CC: "clang-6.0"
        CXX: "clang++-6.0"
        CONAN_PROFILE: "clang6"
        RELEASE_TYPE: "Debug"

distcheck-build-linux-clang7-release:
    <<: *distcheck-basic-build-linux
    variables:
        CC: "clang-7"
        CXX: "clang++-7"
        CONAN_PROFILE: "clang7"

distcheck-build-linux-clang7-release:
    <<: *distcheck-basic-build-linux
    variables:
        CC: "clang-7"
        CXX: "clang++-7"
        CONAN_PROFILE: "clang7"
        RELEASE_TYPE: "Debug"

distcheck-package-linux-bintray:
    stage: package
    image: mroynard/ubuntu-toolset:stable
    script:
        - set -e
        - conan remote add $CONAN_BINTRAY_REMOTE_NAME $CONAN_BINTRAY_REMOTE_URL
        - conan user
               -p $CONAN_BINTRAY_API_KEY
               -r $CONAN_BINTRAY_REMOTE_NAME $CONAN_BINTRAY_USER
        - conan remote list
        - conan create
                --build missing
                . $NAME/$VERSION@$CONAN_BINTRAY_USER/$TAG
        - conan upload
                --all --force --confirm --retry 10 --retry-wait 5
                -r $CONAN_BINTRAY_REMOTE_NAME
                $NAME/$VERSION@$CONAN_BINTRAY_USER/$TAG
    only:
        - master

distcheck-package-linux-lrde:
    stage: package
    image: mroynard/ubuntu-toolset:stable
    script:
        - set -e
        - conan remote add $CONAN_LRDE_REMOTE_NAME $CONAN_LRDE_REMOTE_URL
        - conan user
               -p $CONAN_LRDE_API_KEY
               -r $CONAN_LRDE_REMOTE_NAME $CONAN_LRDE_USER
        - conan remote list
        - conan create
                --build missing
                . $NAME/$VERSION@$CONAN_LRDE_USER/$TAG
        - conan upload
                --all --force --confirm --retry 10 --retry-wait 5
                -r $CONAN_LRDE_REMOTE_NAME
                $NAME/$VERSION@$CONAN_LRDE_USER/$TAG
    only:
        - master