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 fc60df43 authored by Nathan Graule's avatar Nathan Graule 💻
Browse files

Strip hints on python 2 versions

parent 2b8e6e55
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
- pip install wheel strip-hints
- strip-hints call/__init__.py > call/__init__.py
script:
- pip wheel .
artifacts:
......@@ -40,12 +29,11 @@ build:py3:
name: Python 3
test:py2:
variables:
PYTHON_VERSION: 2
stage: build
image: python:2.7-alpine
before_script:
- pip install nose
- pip install nose strip-hints
- strip-hints call/__init__.py > call/__init__.py
script:
- nosetests tests
artifacts:
......
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