1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
|
env:
global:
# directory containing the project source
- REPO_DIR=.
# pip dependencies to _build_ project
- BUILD_DEPENDS="Cython setuptools>=25 setuptools_scm setuptools_scm_git_archive"
# pip dependencies to _test_ project
- TEST_DEPENDS="sympy unittest2 pytest"
- PLAT=x86_64
- UNICODE_WIDTH=32
# Travis only clones the latest 50 commits. We need the full repository to
# compute the version string from the git metadata:
# https://github.com/travis-ci/travis-ci/issues/3412#issuecomment-83993903
# https://github.com/pypa/setuptools_scm/issues/93
git:
depth: 9999999
language: python
# The travis Python version is unrelated to the version we build and test
# with. This is set with the MB_PYTHON_VERSION variable.
python: 3.5
sudo: required
dist: trusty
services: docker
matrix:
exclude:
# Exclude the default Python 3.5 build
- python: 3.5
include:
- os: linux
env: MB_PYTHON_VERSION=2.7
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- UNICODE_WIDTH=16
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- PLAT=i686
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- PLAT=i686
- UNICODE_WIDTH=16
- os: linux
env:
- MB_PYTHON_VERSION=3.4
- os: linux
env:
- MB_PYTHON_VERSION=3.4
- PLAT=i686
- os: linux
env:
- MB_PYTHON_VERSION=3.5
- BUILD_SDIST=true
- os: linux
env:
- MB_PYTHON_VERSION=3.5
- PLAT=i686
- os: linux
env:
- MB_PYTHON_VERSION=3.6
- os: linux
env:
- MB_PYTHON_VERSION=3.6
- PLAT=i686
- os: linux
env:
- MB_PYTHON_VERSION=3.7
- os: linux
env:
- MB_PYTHON_VERSION=3.7
- PLAT=i686
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=2.7
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.4
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.5
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.6
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.7
before_install:
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install
install:
- build_wheel $REPO_DIR $PLAT
script:
- install_run $PLAT
after_success:
# if tagged, create the source distribution for the deploy stage
- if [ -n "$TRAVIS_TAG" ] && [ "$BUILD_SDIST" == true ]; then pip install cython; pip install -U setuptools; python setup.py sdist -d ${TRAVIS_BUILD_DIR}/wheelhouse; fi
#### The following section enables automatic deployment on tags to GitHub Releases.
#### You must replace the secure api_key with yours, as created by `travis setup releases`.
#### See https://docs.travis-ci.com/user/deployment/releases
deploy:
provider: releases
api_key:
secure: cO28Gh+rJ/DgTTM3X7GsAChmOhNxkzZrf6pI3hxGTpDSivyc8hN9TW7sQWaj3A8SfilBM11dvrIvESHRUeQJBkVYANkA2ImREKpH+wXK4qHXxD6I0vWptFXPmPPij7s8oO2c444+HJHq8lB8Y0VJo7HaqLo40SBX9YPiXhbhBMzpYr1ZIPkhzNJmEislQx3WrtGVO9SLAMtWqEvnB9vSwPvm9jTfayNUBewZ7X2NBNmqaP4j7yoW/QGXn2tmdTpRBj45cIZrxvw/8qOf4wEgez8VBndia/Zapc4ivphAbrNscMp4PuWaneGz/DUnMSBN7FZyzwaWuZl+HBLvdeQTLcDWvB5kWDzCRSpEGcCmijT9pjkEM3mUwFLrmb/6r0xLSwmTHqg9+BO0bVYKmPAlSe1qYhZOBdgnsjwbYq7agNV7RCZOzbVExrhucln8jKWgFPdRBqsooUUAMmZBgp4/Vzn2GV3V57zEFAAl1LAyO5irS7LAkmQeZly3nHY0v6eisIsFIUM5kGIuYxYVptGzLhkG0Q0nwcCNPiI5dbzBxjXHV1FDpbeHQcOViweVhG4aJkCGjhFxy+h9uxnr/RqqcgraIi8ooSoHH/bjjDhgx9AExEGE5Oin9OwmrlphLayXhSUYrr9Su2JnvQfPggHOrEEWitvG7bbse8Bzur4t/WE=
file_glob: true
file: "${TRAVIS_BUILD_DIR}/wheelhouse/*"
skip_cleanup: true
on:
repo: greginvm/pyclipper
tags: true
|