-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from OpenPTV/alex_master
merging CI build
- Loading branch information
Showing
3 changed files
with
60 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
language: python | ||
|
||
before_install: | ||
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi | ||
- chmod +x miniconda.sh | ||
- ./miniconda.sh -b -p /home/travis/mc | ||
- export PATH=/home/travis/mc/bin:$PATH | ||
|
||
install: | ||
- conda update --yes conda | ||
- conda create -n testenv --yes $DEPS numpy cython pyyaml nose six python=$TRAVIS_PYTHON_VERSION | ||
- source activate testenv | ||
|
||
# for debugging... | ||
- echo $PATH | ||
- which python | ||
- conda info | ||
- conda list | ||
matrix: | ||
include: | ||
- sudo: required | ||
services: | ||
- docker | ||
env: | ||
- CIBW_SKIP="*manylinux1_i686* cp34-*" | ||
- CIBW_BEFORE_BUILD="pip install -r requirements.txt && python setup.py prepare | ||
--liboptv-dir liboptv-src" | ||
- PIP=pip | ||
- os: osx | ||
language: generic | ||
env: | ||
- PIP=pip2 | ||
- CIBW_BEFORE_BUILD="cd py_bind && pip install -r requirements.txt && python setup.py | ||
prepare --liboptv-dir liboptv-src" | ||
- CIBW_SKIP=cp34-* | ||
|
||
script: | ||
- cd py_bind | ||
- python setup.py prepare | ||
- python setup.py install | ||
- cd test | ||
- nosetests --verbose | ||
- "$PIP install cibuildwheel==0.10.2" | ||
- cp -R liboptv py_bind/liboptv-src | ||
- cibuildwheel py_bind --output-dir wheelhouse | ||
|
||
deploy: | ||
provider: releases | ||
skip_cleanup: true | ||
api_key: "$GITHUB_TOKEN" | ||
file_glob: true | ||
file: wheelhouse/* | ||
on: | ||
tags: true | ||
branch: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
environment: | ||
CIBW_SKIP: "*manylinux1_i686* cp34-*" | ||
CIBW_BEFORE_BUILD: "cd py_bind && pip install -r requirements.txt && python setup.py prepare" | ||
|
||
build_script: | ||
- pip install cibuildwheel==0.10.2 | ||
- cibuildwheel py_bind --output-dir wheelhouse | ||
|
||
artifacts: | ||
- path: wheelhouse\*.whl | ||
name: Wheels | ||
|
||
deploy: | ||
provider: GitHub | ||
auth_token: ${GITHUB_TOKEN} | ||
artifact: Wheels | ||
on: | ||
branch: master | ||
APPVEYOR_REPO_TAG: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters