diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-11-12 09:17:14 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-11-12 09:17:14 +0000 |
| commit | 617bb3ebbfecb72c13abfc549b98c5407e0fee3d (patch) | |
| tree | a6336f860e05d3fc321b89b7e890f7f0ae6d0f74 /.travis.yml | |
| parent | Update submodule (diff) | |
| download | pygensvm-617bb3ebbfecb72c13abfc549b98c5407e0fee3d.tar.gz pygensvm-617bb3ebbfecb72c13abfc549b98c5407e0fee3d.zip | |
First attempt at setting up travis for cibuildwheel
Diffstat (limited to '.travis.yml')
| -rw-r--r-- | .travis.yml | 48 |
1 files changed, 39 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index 78aa334..c15a2d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,36 @@ -language: python -python: - - "3.6" - - "2.7" +# Travis CI configuration for GenSVM + +matrix: + include: + - language: python + dist: xenial + sudo: required + python: "3.7" + services: + - docker + env: + - CC="gcc" + - PYTHON="python3" + - PIP="pip3" + + - os: osx + language: generic + env: + - CC="gcc" + - PYTHON="python3" + - PIP="pip3" + + - os: windows + language: shell + before_install: + - choco install python3 --version 3.6.8 --no-progress -y + env: + - PATH=/c/Python36:/c/Python36/Scripts:$PATH + - PYTHON="python" + - PIP="pip" + +env: + - CIBW_TEST_COMMAND="python -VV && python -m unittest discover -f -s {project}/test env: - CC="gcc" @@ -11,10 +40,11 @@ before_install: - sudo apt-get install -y libatlas-base-dev liblapack-dev liblapacke-dev install: - - pip install --upgrade pip - - pip install -U -r requirements.txt - - pip install green Cython - - python setup.py build_ext --inplace + - $PIP install numpy + - $PIP install -e .[dev] + - $PYTHON -m unittest discover -v -f -s ./test script: - - green -vv -f + - $PIP install cibuildwheel==1.0.0 + - cibuildwheel --output-dir wheelhouse + - ls wheelhouse |
