Commit c9e9de25 authored by Tjerk Vreeken's avatar Tjerk Vreeken

Add GitLab CI file for wheels and tests

So far only (binary) wheels on Windows for Python 2.7 32-bits are
supported. No builds are performed for Linux (or MacOS) yet, or for other
versions of Python.

For tests a Docker environment on Linux is used, as this will allow using
that same runner to easily build linux wheels in the future (see PEP-513).

NOTE: For some reason, using a GitLab runner with version 1.8.0 does not
work, whereas 1.7.1 does. The former cannot find local images, which is
possibly related to some default pull policy.
parent 261adb44
build:windows:
stage: build
cache:
paths:
- venv/
script:
- call %PATH_VCVARSALL% x86
- SET DISTUTILS_USE_SDK=1
- SET MSSdk=1
- python -m virtualenv venv
- call venv\Scripts\activate.bat
- pip install -r doc\requirements.txt
- pip wheel .
artifacts:
paths:
- '*.whl'
expire_in: 1 week
tags:
- windows
test:linux:
image: jmodelica.org
stage: test
# FIXME: Nose fails if we do not have a USER environment variable
script: python setup.py install && export USER=root && /opt/JModelica/bin/jm_python.sh -m nose --exe -w tests
tags:
- docker
\ 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