[Notes] [Git][BuildStream/buildstream][tiagogomes/issue-514] WIP Add end-to-end tests



Title: GitLab

Tiago Gomes pushed to branch tiagogomes/issue-514 at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -79,6 +79,8 @@ source_dist:
    79 79
       - cd ../..
    
    80 80
       - mkdir -p coverage-linux/
    
    81 81
       - cp dist/buildstream/.coverage.* coverage-linux/coverage."${CI_JOB_NAME}"
    
    82
    +  except:
    
    83
    +  - schedules
    
    82 84
       artifacts:
    
    83 85
         paths:
    
    84 86
         - coverage-linux/
    
    ... ... @@ -127,6 +129,8 @@ tests-unix:
    127 129
         - cd ../..
    
    128 130
         - mkdir -p coverage-unix/
    
    129 131
         - cp dist/buildstream/.coverage.* coverage-unix/coverage.unix
    
    132
    +  except:
    
    133
    +  - schedules
    
    130 134
       artifacts:
    
    131 135
         paths:
    
    132 136
         - coverage-unix/
    
    ... ... @@ -148,10 +152,43 @@ docs:
    148 152
       - make BST_FORCE_SESSION_REBUILD=1 -C doc
    
    149 153
       - cd ../..
    
    150 154
       - mv dist/buildstream/doc/build/html public
    
    155
    +  except:
    
    156
    +  - schedules
    
    151 157
       artifacts:
    
    152 158
         paths:
    
    153 159
         - public/
    
    154 160
     
    
    161
    +.system-tests: &system-tests-template
    
    162
    +  stage: test
    
    163
    +  variables:
    
    164
    +    XDG_CACHE_HOME: /cache
    
    165
    +    bst_ext_url: git+https://gitlab.com/BuildStream/bst-external.git
    
    166
    +    bst_ext_ref: 1d6ab71151b93c8cbc0a91a36ffe9270f3b835f1 # 0.5.1
    
    167
    +    fd_sdk_ref: 718ea88089644a1ea5b488de0b90c2c565cb75f8 # 18.08.12
    
    168
    +    expected_cache_key: faaf3d3
    
    169
    +  before_script:
    
    170
    +  - (cd dist && ./unpack.sh && cd buildstream && pip3 install .)
    
    171
    +  - pip3 install --user -e ${bst_ext_url}@${bst_ext_ref}#egg=bst_ext
    
    172
    +  - git clone https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git
    
    173
    +  - git -C freedesktop-sdk checkout ${fd_sdk_ref}
    
    174
    +  #when:
    
    175
    +  #- schedules
    
    176
    +
    
    177
    +system-tests:
    
    178
    +  <<: *system-tests-template
    
    179
    +  script:
    
    180
    +  - make -C freedesktop-sdk
    
    181
    +  tags:
    
    182
    +  - system-tests-1
    
    183
    +
    
    184
    +system-tests-no-cache:
    
    185
    +  <<: *system-tests-template
    
    186
    +  script:
    
    187
    +  - sed -i '/artifacts:/,+1 d' freedesktop-sdk/bootstrap/project.conf
    
    188
    +  - sed -i '/artifacts:/,+1 d' freedesktop-sdk/project.conf
    
    189
    +  - make -C freedesktop-sdk
    
    190
    +  tags:
    
    191
    +  - system-tests-2
    
    155 192
     
    
    156 193
     # Check code quality with gitlab's built-in feature.
    
    157 194
     #
    
    ... ... @@ -170,6 +207,8 @@ code_quality:
    170 207
             --volume "$PWD":/code
    
    171 208
             --volume /var/run/docker.sock:/var/run/docker.sock
    
    172 209
             "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
    
    210
    +  except:
    
    211
    +  - schedules
    
    173 212
       artifacts:
    
    174 213
         paths: [gl-code-quality-report.json]
    
    175 214
     
    
    ... ... @@ -199,6 +238,8 @@ analysis:
    199 238
         radon raw -s -j buildstream > analysis/raw.json
    
    200 239
         radon raw -s buildstream
    
    201 240
     
    
    241
    +  except:
    
    242
    +  - schedules
    
    202 243
       artifacts:
    
    203 244
         paths:
    
    204 245
         - analysis/
    
    ... ... @@ -224,6 +265,8 @@ coverage:
    224 265
       - tests-fedora-28
    
    225 266
       - tests-unix
    
    226 267
       - source_dist
    
    268
    +  except:
    
    269
    +  - schedules
    
    227 270
     
    
    228 271
     # Deploy, only for merges which land on master branch.
    
    229 272
     #
    
    ... ... @@ -248,3 +291,5 @@ pages:
    248 291
       # See https://gitlab.com/gitlab-org/gitlab-ce/issues/35141
    
    249 292
       #
    
    250 293
       - master
    
    294
    +  except:
    
    295
    +  - schedules



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]