mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 15:44:17 +00:00
Update GitLab CI configuration
Let's build artifacts after we've completed a test successfully. This should allow folks to install the version of Flake8 from a PR easily.
This commit is contained in:
parent
0b861e31ef
commit
c8df0f88d1
1 changed files with 39 additions and 13 deletions
|
|
@ -1,22 +1,48 @@
|
||||||
|
image: python
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- build
|
||||||
|
- release
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -qq
|
- curl -O https://bootstrap.pypa.io/get-pip.py
|
||||||
- apt-get install -y python python3 python-dev python3-dev
|
- python get-pip.py
|
||||||
- curl -O https://bootstrap.pypa.io/get-pip.py
|
- pip install -r dev-requirements.txt
|
||||||
- python get-pip.py
|
|
||||||
- pip install -r dev-requirements.txt
|
|
||||||
|
|
||||||
python2:
|
python2:
|
||||||
script:
|
stage: test
|
||||||
- tox -e py27
|
script: tox -e py27
|
||||||
|
|
||||||
python3:
|
python3:
|
||||||
script:
|
stage: test
|
||||||
- tox --skip-missing-interpreters -e py34,py35
|
script: tox --skip-missing-interpreters -e py34,py35
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
script:
|
stage: test
|
||||||
- tox -e linters
|
script: tox -e linters
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
script:
|
stage: test
|
||||||
- tox -e docs
|
script: tox -e docs
|
||||||
|
|
||||||
|
dogfood:
|
||||||
|
stage: test
|
||||||
|
script: tox -e dogfood
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
script: tox -e build
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- dist/
|
||||||
|
expire_in: 1 month
|
||||||
|
|
||||||
|
release:
|
||||||
|
stage: release
|
||||||
|
script: tox -e build
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- dist
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue