[Notes] [Git][BuildStream/buildstream][bschubert/add-fedora-nobwrap-tests] gitlab-cy.yml: make linux-tests-template more composable.



Title: GitLab

Benjamin Schubert pushed to branch bschubert/add-fedora-nobwrap-tests at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -59,32 +59,35 @@ source_dist:
    59 59
     .linux-tests-template: &linux-tests
    
    60 60
       stage: test
    
    61 61
     
    
    62
    -  script:
    
    62
    +  variables:
    
    63
    +    COVERAGE_DIR: coverage-linux
    
    64
    +
    
    65
    +  before_script:
    
    63 66
       # Diagnostics
    
    64 67
       - mount
    
    65 68
       - df -h
    
    66 69
     
    
    70
    +  # Unpack
    
    71
    +  - cd dist && ./unpack.sh
    
    72
    +
    
    73
    +  script:
    
    67 74
       - useradd -Um buildstream
    
    68 75
       - chown -R buildstream:buildstream .
    
    69
    -
    
    70
    -  # Unpack and get into dist/buildstream
    
    71
    -  - cd dist && ./unpack.sh
    
    72
    -  - chown -R buildstream:buildstream buildstream
    
    73
    -  - cd buildstream
    
    76
    +  - cd dist/buildstresm
    
    74 77
     
    
    75 78
       # Run the tests from the source distribution, We run as a simple
    
    76 79
       # user to test for permission issues
    
    77 80
       - su buildstream -c 'python3 setup.py test --index-url invalid://uri --addopts --integration'
    
    78 81
     
    
    79
    -  # Go back to the toplevel and collect our reports
    
    80
    -  - cd ../..
    
    82
    +  after_script:
    
    83
    +  # Collect our reports
    
    81 84
       - mkdir -p coverage-linux/
    
    82
    -  - cp dist/buildstream/.coverage coverage-linux/coverage."${CI_JOB_NAME}"
    
    85
    +  - cp dist/buildstream/.coverage ${COVERAGE_LINUX}/coverage."${CI_JOB_NAME}"
    
    83 86
       except:
    
    84 87
       - schedules
    
    85 88
       artifacts:
    
    86 89
         paths:
    
    87
    -    - coverage-linux/
    
    90
    +    - ${COVERAGE_DIR}
    
    88 91
     
    
    89 92
     tests-debian-9:
    
    90 93
       image: buildstream/testsuite-debian:9-master-119-552f5fc6
    



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