GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit 2b8e6e55 authored by Nathan Graule's avatar Nathan Graule 💻
Browse files

Add GitLab CI configuration

parent 476b92b5
Pipeline #27335311 failed with stages
in 1 minute and 48 seconds
image: python:3.7-alpine
cache:
key: $CI_COMMIT_REF-$PYTHON_VERSION
paths:
- .cache
- venv
variables:
PYTHON_VERSION: 3
PIP_DOWNLOAD_CACHE: .cache
stages:
- build
- dist
build:py2:
variables:
PYTHON_VERSION: 2
stage: build
image: python:2.7-alpine
before_script:
- pip install wheel
script:
- pip wheel .
artifacts:
paths:
- \*.whl
name: Python 2
build:py3:
stage: build
before_script:
- pip install wheel
script:
- pip wheel .
artifacts:
paths:
- \*.whl
name: Python 3
test:py2:
variables:
PYTHON_VERSION: 2
stage: build
image: python:2.7-alpine
before_script:
- pip install nose
script:
- nosetests tests
artifacts:
paths:
- .coverage
expire_in: 1 hour
test:py3:
stage: build
before_script:
- pip install nose coverage
script:
- nosetests --with-coverage tests
artifacts:
paths:
- .coverage
expire_in: 1 hour
dist-test:
stage: dist
dependencies:
- build:py2
- build:py3
variables:
GIT_STRATEGY: none
before_script:
- pip install twine
script:
- twine upload *.whl --repository-url https://test.pypi.org/legacy/
pages:
stage: dist
dependencies:
- test:py3
before_script:
- pip install coverage
script:
- coverage html
after_script:
- mv htmlcov public
artifacts:
paths:
- public
expire_in: 1 hour
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment