.travis.yml 3.4 KB
Newer Older
O
Olli-Pekka Heinisuo 已提交
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
env:
    global:
        - REPO_DIR=opencv
        # Commit from opencv that you want to build
        - BUILD_COMMIT=master
        # pip dependencies to _build_ your project
        - BUILD_DEPENDS="Cython numpy"
        # pip dependencies to _test_ your project.  Include any dependencies
        # that you need, that are also specified in BUILD_DEPENDS, this will be
        # a separate install.
        - TEST_DEPENDS="numpy scipy pytest"
        - PLAT=x86_64
        - UNICODE_WIDTH=32
        - WHEELHOUSE_UPLOADER_USERNAME=travis-worker
        # Following generated with
        # travis encrypt -r your-org/your-project-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key>
        # This is for Rackspace uploads.  Contact Matthew Brett, or the
        # scikit-learn team, for # permission (and the API key) to upload to
        # the Rackspace account used here, or use your own account.
        #- secure:
        #    "MNKyBWOzu7JAUmC0Y+JhPKfytXxY/ADRmUIMEWZV977FLZPgYctqd+lqel2QIFgdHDO1CIdTSymOOFZckM9ICUXg9Ta+8oBjSvAVWO1ahDcToRM2DLq66fKg+NKimd2OfK7x597h/QmUSl4k8XyvyyXgl5jOiLg/EJxNE2r83IA="

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
30 31 32

matrix:
  include:
33 34
    - os: osx
      language: generic
O
Olli-Pekka Heinisuo 已提交
35 36
      env:
        - MB_PYTHON_VERSION=2.7
37 38
    - os: osx
      language: generic
O
Olli-Pekka Heinisuo 已提交
39
      env:
40
        - MB_PYTHON_VERSION=3.4
O
Olli-Pekka Heinisuo 已提交
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
    - os: linux
      env:
        - MB_PYTHON_VERSION=2.7
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
    - os: linux
      env:
        - MB_PYTHON_VERSION=2.7
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
        - UNICODE_WIDTH=16
    - os: linux
      env:
        - MB_PYTHON_VERSION=2.7
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
        - PLAT=i686
    - os: linux
      env:
        - MB_PYTHON_VERSION=2.7
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
        - PLAT=i686
        - UNICODE_WIDTH=16
    - os: linux
      env:
        - MB_PYTHON_VERSION=3.3
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
    - os: linux
      env:
        - MB_PYTHON_VERSION=3.3
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
        - PLAT=i686
    - os: linux
      env:
        - MB_PYTHON_VERSION=3.4
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
    - os: linux
      env:
        - MB_PYTHON_VERSION=3.4
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
        - PLAT=i686
    - os: linux
      env:
        - MB_PYTHON_VERSION=3.5
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
    - os: linux
      env:
        - MB_PYTHON_VERSION=3.5
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
        - PLAT=i686
88

O
Olli-Pekka Heinisuo 已提交
89 90 91 92
before_install:
    - source multibuild/common_utils.sh
    - source multibuild/travis_steps.sh
    - before_install
93 94

install:
O
Olli-Pekka Heinisuo 已提交
95 96 97
    # Maybe get and clean and patch source
    - clean_code $REPO_DIR $BUILD_COMMIT
    - travis_wait 120 build_wheel $REPO_DIR $PLAT
98 99

script:
O
Olli-Pekka Heinisuo 已提交
100 101 102 103 104 105 106 107 108 109 110 111
    - install_run $PLAT

after_success:
    # Upload wheels to Rackspace container
    - pip install wheelhouse-uploader
    # This uploads the wheels to a Rackspace container owned by the
    # scikit-learn team, available at http://wheels.scipy.org.  See above
    # for information on using this account or choosing another.
    - python -m wheelhouse_uploader upload --local-folder
        ${TRAVIS_BUILD_DIR}/wheelhouse/
        --no-update-index
        wheels