Skip to content
Snippets Groups Projects
Commit 54565176 authored by payno's avatar payno
Browse files

[CI] add gitlab.ci file for gitlab continuous integration

parent 9b16f355
Branches gitlab_ci
No related tags found
No related merge requests found
Pipeline #9694 failed
stages:
- build
- test
# - deploy
variables:
http_proxy: http://proxy.esrf.fr:3128
https_proxy: http://proxy.esrf.fr:3128
no_proxy: .esrf.fr,localhost
.build_template: &test_definition
stage: build
before_script:
# Upgrade distribution modules
- python --version
- python -m pip install --upgrade pip
- pip install --upgrade setuptools wheel
script:
# Generate source archive and wheel
- python setup.py build sdist
- python setup.py build bdist_wheel
artifacts:
paths:
- dist/*.whl
.build_template: &build_definition
stage: test
before_script:
# get ready for the test
- python -m pip install --upgrade pip
- pip install --upgrade setuptools wheel
- python -m pip --pre dist/pypolynom*.whl
script:
# run test
- python -m unittest pypolynom.test
build:python-3.4-jessie:
image: python:3.4-jessie
<<: *build_definition
test:python-3.4-jessie:
image: python:3.4-jessie
<<: *test_definition
build:python-3.7-stretch:
image: python:3.7-stretch
<<: *build_definition
test:python-3.7-stretch:
image: python:3.7-stretch
<<: *test_definition
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment