Cosimo Lupo | bb3d924 | 2015-08-11 12:39:49 +0100 | [diff] [blame] | 1 | language: |
| 2 | - objective-c |
| 3 | env: |
| 4 | matrix: |
| 5 | - INSTALL_TYPE='system' VERSION=2.7 |
Cosimo Lupo | a5822da | 2015-08-12 09:42:30 +0100 | [diff] [blame] | 6 | - INSTALL_TYPE='macpython' VERSION=2.7.10 CC=clang CXX=clang++ |
| 7 | - INSTALL_TYPE='macpython' VERSION=3.4.3 CC=clang CXX=clang++ |
Cosimo Lupo | bb3d924 | 2015-08-11 12:39:49 +0100 | [diff] [blame] | 8 | - INSTALL_TYPE='homebrew' VERSION=2.7.10 |
| 9 | - INSTALL_TYPE='homebrew' VERSION=3.4.3 |
| 10 | install: |
| 11 | - source terryfy/travis_tools.sh |
| 12 | - get_python_environment $INSTALL_TYPE $VERSION venv |
| 13 | - pip install --upgrade wheel |
| 14 | script: |
| 15 | - python setup.py build_ext test |
| 16 | after_success: |
| 17 | - pip wheel -w dist . |
| 18 | before_deploy: |
Cosimo Lupo | 6dcb0dd | 2015-08-12 15:57:03 +0100 | [diff] [blame^] | 19 | - export WHEELS=$(ls ./dist/*.whl) |
| 20 | |
| 21 | # use `travis setup releases` to create a Github OAuth token |
| 22 | # http://docs.travis-ci.com/user/deployment/releases/ |
| 23 | |
| 24 | # deploy: |
| 25 | # provider: releases |
| 26 | # api_key: <encrypted Github OAuth token> |
| 27 | # file: |
| 28 | # - "${WHEELS}" |
| 29 | # skip_cleanup: true |
| 30 | # on: |
| 31 | # repo: google/brotli |
| 32 | # tags: true |