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



Title: GitLab

Tiago Gomes pushed to branch tiagogomes/system_tests at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -84,6 +84,8 @@ source_dist:
    84 84
       - cd ../..
    
    85 85
       - mkdir -p coverage-linux/
    
    86 86
       - cp dist/buildstream/.coverage.* coverage-linux/coverage."${CI_JOB_NAME}"
    
    87
    +  except:
    
    88
    +  - schedules
    
    87 89
       artifacts:
    
    88 90
         paths:
    
    89 91
         - coverage-linux/
    
    ... ... @@ -125,6 +127,8 @@ tests-unix:
    125 127
         - cd ../..
    
    126 128
         - mkdir -p coverage-unix/
    
    127 129
         - cp dist/buildstream/.coverage.* coverage-unix/coverage.unix
    
    130
    +  except:
    
    131
    +  - schedules
    
    128 132
       artifacts:
    
    129 133
         paths:
    
    130 134
         - coverage-unix/
    
    ... ... @@ -146,10 +150,53 @@ docs:
    146 150
       - make BST_FORCE_SESSION_REBUILD=1 -C doc
    
    147 151
       - cd ../..
    
    148 152
       - mv dist/buildstream/doc/build/html public
    
    153
    +  except:
    
    154
    +  - schedules
    
    149 155
       artifacts:
    
    150 156
         paths:
    
    151 157
         - public/
    
    152 158
     
    
    159
    +.system-tests: &system-tests-template
    
    160
    +  stage: test
    
    161
    +  variables:
    
    162
    +    XDG_CACHE_HOME: /cache
    
    163
    +    bst_ext_url: git+https://gitlab.com/BuildStream/bst-external.git
    
    164
    +    bst_ext_ref: 31376f750df713b3613d5348f93100c7e0ef68c0 # 0.3
    
    165
    +    fd_sdk_ref: 27cb7575f57e2922331facbd252dc690807c7182 # 18.08
    
    166
    +    expected_cache_key: ceee9b5a
    
    167
    +    expected_md5sum: 083966a5dc914d52e5245af3a06e933e
    
    168
    +  before_script:
    
    169
    +  - (cd dist && ./unpack.sh && cd buildstream && pip3 install .)
    
    170
    +  - pip3 install --user -e ${bst_ext_url}@${bst_ext_ref}#egg=bst_ext
    
    171
    +  - git clone https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git
    
    172
    +  - git -C freedesktop-sdk checkout ${fd_sdk_ref}
    
    173
    +  #when:
    
    174
    +  #- schedules
    
    175
    +
    
    176
    +system-tests:
    
    177
    +  <<: *system-tests-template
    
    178
    +  script:
    
    179
    +  - make -C freedesktop-sdk
    
    180
    +  - pwd
    
    181
    +  - cache_key=$(bst -C sdk show all.bst --deps none --format %{key})
    
    182
    +  - test ${cache_key} == ${expected_cache_key}
    
    183
    +  - bst -C sdk checkout --tar all.bst all.tar
    
    184
    +  - checksum=$(md5sum all.tar)
    
    185
    +  - test ${checksum} == ${expected_checksum}
    
    186
    +
    
    187
    +system-tests-no-cache:
    
    188
    +  <<: *system-tests-template
    
    189
    +  script:
    
    190
    +  - sed -i '/artifacts:/,+1 d' freedesktop-sdk/bootstrap/project.conf
    
    191
    +  - sed -i '/artifacts:/,+1 d' freedesktop-sdk/project.conf
    
    192
    +  - make -C freedesktop-sdk
    
    193
    +  - pwd
    
    194
    +  - cache_key=$(bst -C sdk show all.bst --deps none --format %{key})
    
    195
    +  - test ${cache_key} == ${expected_cache_key}
    
    196
    +  - bst -C sdk checkout --tar all.bst all.tar
    
    197
    +  - checksum=$(md5sum all.tar)
    
    198
    +  - test ${checksum} == ${expected_checksum}
    
    199
    +
    
    153 200
     
    
    154 201
     #####################################################
    
    155 202
     #                    Post stage                     #
    
    ... ... @@ -174,6 +221,8 @@ codequality:
    174 221
             --volume "$PWD":/code
    
    175 222
             --volume /var/run/docker.sock:/var/run/docker.sock
    
    176 223
             "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
    
    224
    +  except:
    
    225
    +  - schedules
    
    177 226
       artifacts:
    
    178 227
         paths: [codeclimate.json]
    
    179 228
     
    
    ... ... @@ -199,6 +248,8 @@ analysis:
    199 248
         radon raw -s -j buildstream > analysis/raw.json
    
    200 249
         radon raw -s buildstream
    
    201 250
     
    
    251
    +  except:
    
    252
    +  - schedules
    
    202 253
       artifacts:
    
    203 254
         paths:
    
    204 255
         - analysis/
    
    ... ... @@ -223,6 +274,8 @@ coverage:
    223 274
       - tests-fedora-27
    
    224 275
       - tests-unix
    
    225 276
       - source_dist
    
    277
    +  except:
    
    278
    +  - schedules
    
    226 279
     
    
    227 280
     # Deploy, only for merges which land on master branch.
    
    228 281
     #
    
    ... ... @@ -247,3 +300,5 @@ pages:
    247 300
       # See https://gitlab.com/gitlab-org/gitlab-ce/issues/35141
    
    248 301
       #
    
    249 302
       - master
    
    303
    +  except:
    
    304
    +  - schedules



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