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 #36 from fgregg/master
CI for travis and appveyor
- Loading branch information
Showing
2 changed files
with
80 additions
and
8 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,15 +1,50 @@ | ||
language: python | ||
sudo: false | ||
python: | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
- pypy | ||
- pypy3 | ||
matrix: | ||
include: | ||
- os: linux | ||
python: 2.7 | ||
- os: linux | ||
python: 3.3 | ||
- os: linux | ||
python: 3.4 | ||
- os: linux | ||
python: 3.5 | ||
- os: linux | ||
python: pypy | ||
- os: linux | ||
python: pypy3 | ||
- os: osx | ||
language: generic | ||
env: TERRYFY_PYTHON='homebrew 2' | ||
- os: osx | ||
language: generic | ||
env: TERRYFY_PYTHON='macpython 3.4' | ||
- os: osx | ||
language: generic | ||
env: TERRYFY_PYTHON='homebrew 3.5' | ||
before_install: | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then git clone https://github.com/MacPython/terryfy; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source terryfy/travis_tools.sh; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then get_python_environment $TERRYFY_PYTHON venv; fi | ||
- if [[ "$TERRYFY_PYTHON" == "homebrew 3" ]]; then alias pip=`which pip3` ; fi | ||
install: | ||
- pip install . | ||
- pip install -e . | ||
script: | ||
- python setup.py -q test -q | ||
notifications: | ||
email: false | ||
after_success: | ||
- echo [distutils] > ~/.pypirc | ||
- echo index-servers = pypi >> ~/.pypirc | ||
- echo [pypi] >> ~/.pypirc | ||
- echo repository=https://pypi.python.org/pypi >> ~/.pypirc | ||
- echo username=zope.wheelbuilder >> ~/.pypirc | ||
- echo password=$PYPIPASSWORD >> ~/.pypirc | ||
- if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then pip install twine; fi | ||
- if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then python setup.py bdist_wheel; fi | ||
- if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then twine upload dist/*; fi | ||
|
||
env: | ||
global: | ||
secure: "crhnoUI22xUnHzK9B7DY/okdKNVqc5FEbMzV8qj8iclhZpJTZ+D7z2nmEDZuWes3Ar7TlinM9cI4AP0irmjSJMJOKMKXv3ucb7Rr85c7wn0HuKFI1QJwV7OO5kVIbX+McQYmASXZEsl5lDwF4hi1JMKFOwVEU7X6O4u03L3qRrI=" |
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,37 @@ | ||
environment: | ||
password: | ||
secure: RtpeKCle25vCixaUcJBu6Q== | ||
|
||
matrix: | ||
- python : 27 | ||
- python : 27-x64 | ||
- python : 33 | ||
- python : 34 | ||
- python : 35 | ||
|
||
install: | ||
- "SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%" | ||
- echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat" | ||
- pip install -e . | ||
|
||
build: false | ||
|
||
test_script: | ||
- python setup.py -q test -q | ||
|
||
on_success: | ||
- echo Build succesful! | ||
|
||
deploy_script: | ||
- echo [distutils] > %USERPROFILE%\\.pypirc | ||
- echo index-servers = >> %USERPROFILE%\\.pypirc | ||
- echo pypi >> %USERPROFILE%\\.pypirc | ||
- echo [pypi] >> %USERPROFILE%\\.pypirc | ||
- echo repository=https://pypi.python.org/pypi >> %USERPROFILE%\\.pypirc | ||
- echo username=zope.wheelbuilder >> %USERPROFILE%\\.pypirc | ||
- echo password=%password% >> %USERPROFILE%\\.pypirc | ||
- set HOME=%USERPROFILE% | ||
- pip install wheel twine | ||
- ps: if($env:APPVEYOR_REPO_TAG -eq $TRUE) { python -W ignore setup.py bdist_wheel; twine upload dist/* } | ||
|
||
deploy : on |