.travis.yml 4.0 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:
O
Olli-Pekka Heinisuo 已提交
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
    - 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_i686
        - PLAT=i686

actual-matrix:
  include:
    - os: linux
      env:
        - MB_PYTHON_VERSION=2.6
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
    - os: linux
      env:
        - MB_PYTHON_VERSION=2.6
        - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
        - PLAT=i686
    - 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
    - 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
113

O
Olli-Pekka Heinisuo 已提交
114 115 116 117
before_install:
    - source multibuild/common_utils.sh
    - source multibuild/travis_steps.sh
    - before_install
118 119

install:
O
Olli-Pekka Heinisuo 已提交
120 121 122 123
    # Maybe get and clean and patch source
    - clean_code $REPO_DIR $BUILD_COMMIT
    - travis_wait 120 build_wheel $REPO_DIR $PLAT
    # - build_wheel $REPO_DIR $PLAT
124 125

script:
O
Olli-Pekka Heinisuo 已提交
126 127 128 129 130 131 132 133 134 135 136 137
    - 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