mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-13 16:14:18 +00:00
Merge branch 'add-gitlab-ci' into 'master'
Enable GitLab CI *Description of changes* Add a `.gitlab-ci.yml` so we can have multiple services (including Jenkins, once I fix it). *Related to:* None See merge request !65
This commit is contained in:
commit
2c4eb1377b
2 changed files with 25 additions and 3 deletions
22
.gitlab-ci.yml
Normal file
22
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
before_script:
|
||||||
|
- apt-get update -qq
|
||||||
|
- apt-get install -y python python3 python-dev python3-dev
|
||||||
|
- curl -O https://bootstrap.pypa.io/get-pip.py
|
||||||
|
- python get-pip.py
|
||||||
|
- pip install -r dev-requirements.txt
|
||||||
|
|
||||||
|
python2:
|
||||||
|
script:
|
||||||
|
- tox -e py27
|
||||||
|
|
||||||
|
python3:
|
||||||
|
script:
|
||||||
|
- tox --skip-missing-interpreters -e py34,py35
|
||||||
|
|
||||||
|
linters:
|
||||||
|
script:
|
||||||
|
- tox -e linters
|
||||||
|
|
||||||
|
docs:
|
||||||
|
script:
|
||||||
|
- tox -e docs
|
||||||
6
tox.ini
6
tox.ini
|
|
@ -1,6 +1,6 @@
|
||||||
[tox]
|
[tox]
|
||||||
minversion=2.3.1
|
minversion=2.3.1
|
||||||
envlist = py27,py33,py34,py35,flake8
|
envlist = py27,py33,py34,py35,flake8,linters,docs
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
|
|
@ -35,7 +35,7 @@ deps =
|
||||||
pyflakes
|
pyflakes
|
||||||
pylint
|
pylint
|
||||||
commands =
|
commands =
|
||||||
pylint flake8
|
pylint src/flake8
|
||||||
|
|
||||||
[testenv:doc8]
|
[testenv:doc8]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
|
@ -66,7 +66,7 @@ use_develop = false
|
||||||
deps =
|
deps =
|
||||||
bandit
|
bandit
|
||||||
commands =
|
commands =
|
||||||
bandit -r flake8/ -c .bandit.yml
|
bandit -r src/flake8/ -c .bandit.yml
|
||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue