Raymond Toy pushed to branch issue-389-reduce-duplication-in-ci-rules at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -18,7 +18,18 @@ variables:
    18 18
         # When the result of `git describe` cannot be used as a version
    
    19 19
         # string, an alternative can be provided with the -V flag
    
    20 20
         - bin/make-dist.sh -I dist build-4
    
    21
    -    
    
    21
    +
    
    22
    +# Default build configuration to be added to each build stage for each
    
    23
    +# OS.
    
    24
    +.build_template: &build_configuration
    
    25
    +  stage: build
    
    26
    +  artifacts:
    
    27
    +    paths:
    
    28
    +      - dist/
    
    29
    +      - build-2/*.log
    
    30
    +      - build-3/*.log
    
    31
    +      - build-4/
    
    32
    +  
    
    22 33
     stages:
    
    23 34
       - install
    
    24 35
       - build
    
    ... ... @@ -44,15 +55,9 @@ linux:install:
    44 55
         - (cd snapshot; tar xjf ../cmucl-$version-linux.tar.bz2; tar xjf ../cmucl-$version-linux.extra.tar.bz2)
    
    45 56
     
    
    46 57
     linux:build:
    
    47
    -  stage: build
    
    58
    +  <<: *build_configuration
    
    48 59
       tags:
    
    49 60
         - linux
    
    50
    -  artifacts:
    
    51
    -    paths:
    
    52
    -      - dist/
    
    53
    -      - build-2/*.log
    
    54
    -      - build-3/*.log
    
    55
    -      - build-4/
    
    56 61
       needs:
    
    57 62
         - job: linux:install
    
    58 63
           artifacts: true
    
    ... ... @@ -178,15 +183,9 @@ osx:install:
    178 183
         - (cd snapshot; tar xjf ../cmucl-$version-darwin.tar.bz2)
    
    179 184
     
    
    180 185
     osx:build:
    
    181
    -  stage: build
    
    186
    +  <<: *build_configuration
    
    182 187
       tags:
    
    183 188
         - macos-virtualbox
    
    184
    -  artifacts:
    
    185
    -    paths:
    
    186
    -      - dist/
    
    187
    -      - darwin-2/*.log
    
    188
    -      - darwin-3/*.log
    
    189
    -      - darwin-4/*.log
    
    190 189
       needs:
    
    191 190
         - job: osx:install
    
    192 191
           artifacts: true
    
    ... ... @@ -292,15 +291,9 @@ opensuse:install:
    292 291
         - (cd snapshot; tar xjf ../cmucl-$version-linux.tar.bz2; tar xjf ../cmucl-$version-linux.extra.tar.bz2)
    
    293 292
     
    
    294 293
     opensuse:build:
    
    295
    -  stage: build
    
    294
    +  <<: *build_configuration
    
    296 295
       tags:
    
    297 296
         - opensuse
    
    298
    -  artifacts:
    
    299
    -    paths:
    
    300
    -      - dist/
    
    301
    -      - build-2/*.log
    
    302
    -      - build-3/*.log
    
    303
    -      - build-4/
    
    304 297
       needs:
    
    305 298
         - job: opensuse:install
    
    306 299
           artifacts: true