-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitlab-ci.yml
26 lines (24 loc) · 826 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
variables:
DOCKER_DRIVER: overlay2
Test:
image: python:3
rules:
- if: $CI_MERGE_REQUEST_ID
- if: $CI_EXTERNAL_PULL_REQUEST_IID
- if: $CI_COMMIT_BRANCH == 'master'
before_script:
- pip install -U pytest pytest-cov pytest-repeat
- pip install -U flake8 flake8-blind-except flake8-builtins flake8-class-newline flake8-comprehensions flake8-deprecated flake8-docstrings flake8-import-order flake8-quotes pep8-naming pylint
- pip install -U mypy
- pip install -U codecov
script:
- python3 -m pytest --cov=dco_check --cov-branch --cov-report=xml
- codecov -t $CODECOV_TOKEN
Check DCO:
image: christophebedard/dco-check:latest
rules:
- if: $CI_MERGE_REQUEST_ID
- if: $CI_EXTERNAL_PULL_REQUEST_IID
- if: $CI_COMMIT_BRANCH == 'master'
script:
- dco-check --verbose