Browse Source

Gitlab ci

log
Laurent Kislaire 4 years ago
parent
commit
712b2e01e5
  1. 36
      .gitlab-ci.yml
  2. 2
      setup.py

36
.gitlab-ci.yml

@ -0,0 +1,36 @@
image: python:3.7-slim
before_script:
- python -V # Print out python version for debugging
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
stages:
- build
- test
cache:
paths:
- venv/
- .cache/pip
job_build:
stage: build
script:
- echo "Building the app"
- python setup.py build
- python setup.py -q install
job_test:
stage: test
dependencies:
- job_build
script:
- echo "Running tests"
- pip install -r requirements-dev.txt
- pytest --fixtures tests/
- pytest --collect-only tests/
- pytest -s tests/

2
setup.py

@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name="pyfbx",
version="0.0.2",
version="0.0.3",
description="Freebox thin client",
long_description=(pathlib.Path(__file__).parent / "README.md").read_text(),
long_description_content_type='text/markdown',

Loading…
Cancel
Save