Martin Blanchard pushed to branch mablanch/00-update-fix-ci at BuildGrid / buildgrid
Commits:
- 
c1278576
by Martin Blanchard at 2018-09-06T09:38:27Z
3 changed files:
Changes:
| 1 | 1 |  [run]
 | 
| 2 | 2 |  concurrency = multiprocessing
 | 
| 3 | +data_file = .coverage
 | |
| 3 | 4 |  include =
 | 
| 4 | 5 |    */buildgrid/*
 | 
| 5 | 6 |  | 
| ... | ... | @@ -9,9 +9,9 @@ stages: | 
| 9 | 9 |    - post
 | 
| 10 | 10 |  | 
| 11 | 11 |  before_script:
 | 
| 12 | -  - pip3 install setuptools
 | |
| 12 | +  - python3 -m pip install --upgrade setuptools pip
 | |
| 13 | 13 |    - export PATH=~/.local/bin:${PATH}
 | 
| 14 | -  - pip3 install --user -e .
 | |
| 14 | +  - python3 -m pip install --user --editable ".[tests]"
 | |
| 15 | 15 |  | 
| 16 | 16 |  .tests-template: &linux-tests
 | 
| 17 | 17 |    stage: test
 | 
| ... | ... | @@ -20,7 +20,7 @@ before_script: | 
| 20 | 20 |    script:
 | 
| 21 | 21 |      - python3 setup.py test
 | 
| 22 | 22 |      - mkdir -p coverage/
 | 
| 23 | -    - cp .coverage.* coverage/coverage."${CI_JOB_NAME}"
 | |
| 23 | +    - cp .coverage coverage/coverage."${CI_JOB_NAME}"
 | |
| 24 | 24 |    artifacts:
 | 
| 25 | 25 |      paths:
 | 
| 26 | 26 |      - coverage/
 | 
| ... | ... | @@ -43,7 +43,7 @@ run-dummy-job-debian: | 
| 43 | 43 |  build-docs:
 | 
| 44 | 44 |    stage: test
 | 
| 45 | 45 |    script:
 | 
| 46 | -    - pip3 install --editable ".[docs]"
 | |
| 46 | +    - python3 -m pip install --user --editable ".[docs]"
 | |
| 47 | 47 |      - make -C docs html
 | 
| 48 | 48 |      - mkdir -p documentation/
 | 
| 49 | 49 |      - cp -a docs/build/html/. documentation/
 | 
| ... | ... | @@ -56,7 +56,7 @@ coverage: | 
| 56 | 56 |    stage: post
 | 
| 57 | 57 |    coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
 | 
| 58 | 58 |    script:
 | 
| 59 | -    - pip3 install coverage==4.4.0
 | |
| 59 | +    - python3 -m pip install --user --editable ".[tests]"
 | |
| 60 | 60 |      - mkdir report
 | 
| 61 | 61 |      - cd report
 | 
| 62 | 62 |      - cp ../coverage/coverage.* .
 | 
| ... | ... | @@ -75,7 +75,7 @@ pages: | 
| 75 | 75 |    - build-docs
 | 
| 76 | 76 |    script:
 | 
| 77 | 77 |    - cp -a coverage/. public/
 | 
| 78 | -  - cp -a documentation/* public/
 | |
| 78 | +  - cp -a documentation/. public/
 | |
| 79 | 79 |    artifacts:
 | 
| 80 | 80 |      paths:
 | 
| 81 | 81 |      - public/
 | 
| ... | ... | @@ -90,7 +90,7 @@ tests_require = [ | 
| 90 | 90 |      'moto',
 | 
| 91 | 91 |      'pep8',
 | 
| 92 | 92 |      'pytest == 3.6.4',
 | 
| 93 | -    'pytest-cov >= 2.5.0',
 | |
| 93 | +    'pytest-cov >= 2.6.0',
 | |
| 94 | 94 |      'pytest-pep8',
 | 
| 95 | 95 |      'pytest-pylint',
 | 
| 96 | 96 |  ]
 | 
