forked from takluyver/pygame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (74 loc) · 4.69 KB
/
.travis.yml
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
language: python
cache:
directories:
- $HOME/.cache/pip
- /Library/Caches/Homebrew
# - $HOME/.ccache
# - $HOME/Library/Caches/pip
matrix:
include:
- os: linux
sudo: required
python: 2.7
- os: linux
sudo: required
python: 3.4
- os: linux
sudo: required
python: 3.5
- os: linux
sudo: required
python: 3.6
# Should only need one OSX build because older builds can work on newer machines ok.
#https://docs.travis-ci.com/user/osx-ci-environment/#OS-X-Version
- os: osx
osx_image: beta-xcode6.1
language: generic
env:
- PY_VERSION=3
- MAKEFLAGS=-j8
- os: osx
osx_image: beta-xcode6.1
language: generic
env:
- PY_VERSION=2
- MAKEFLAGS=-j8
# - MACOSX_DEPLOYMENT_TARGET=10.6
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source .travis_osx_before_install.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev python-numpy libportmidi-dev libjpeg-dev libtiff4-dev libx11-6 libX11-dev xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic; fi
install:
- "python .travis_osx_upload_whl.py --write-config"
- $(set | grep PYPI_ | python -c "import sys;print('\n'.join(['unset %s' % l.split('=')[0] for l in sys.stdin.readlines() if l.startswith('PYPI')]))")
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source .travis_osx.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then PYTHON_EXE=python PIP_CMD=pip; fi
- "$PIP_CMD install --upgrade setuptools pip"
- "$PIP_CMD install --upgrade numpy"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then $PIP_CMD install delocate twine; fi
- "$PYTHON_EXE config.py -auto"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then $PYTHON_EXE setup.py install -noheaders; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source .travis_osx_install.sh; fi
env:
global:
- SDL_VIDEODRIVER=dummy
- SDL_AUDIODRIVER=disk
- secure: "VSoeDwpTooSW8K+n2e+nhQOQGQT7PX9GVBF9SmADUIg0Gr5pR2MTlzyGms57tBIYqFndiuLhOXi5zkH2uhMW0mq2VEDRjY4EP12coMWOnwZsdF8Qoj8x39YPR6QSS28Op6g/DLT5DszchwBlpSXHUJEL0/2iw/5A4OnIF5tMcutpkzq+wX3B+WaTqUi9yffto9/LL9/PEUbED50U94ffguwpIMVBUoxvTNhHO1PJmJKGtP1D9PROapQTp+BjzRMfFwe+9WaYPTr2iG5XZ5cNewyQrPcFGdjXOlEGgS3xxIl25l/jHgUHNZKIOKka1h4gajPxNstjnrMkMNaKnGdFo/GwkqnD2igiVT+0oLekIJ0dkVmOecuJJWUVmwCj9xZc//wW1Xunua9zGXjOeSliArnFFoyq3Md1ktOcTOoaKlWM3+0rgNA/2miYzfyMWGuFUACiQ8+fA98j0I7BcLiiUKa1/pD1fLHUcKknrnSA/hPwRBnlmDGtM2FCZobi3jIltZnadkviCpLjSObq7fE59w/+K0fxZn4GKs/xpEtss7xXxs0CmyJwZ6WVxlZAObfUPiRIdj+tglnB31ZdTNWe+7cC9f8zaQYs8+iaiM6DWehOI1o80RcIAuiU10sba89gqSkn+eOfPvzwg4d/z/XJW05weEL18s4ZvYp+JuqhN2Y="
- secure: "EGrZt/2EGOAzwcI69la5RgJ1Fr8uXM0TYarCheBrDVwcESNXccH9myyflN97m/jDrdyJB2fmVgI2WDpFdvnpEXNC7+lTEhApgFx6L1TwE/s5Fj6Kd72cERcPmDwLwzQFChXl2kjPTgu/Qr2u2X3EYCfEd0jRf+TcdHasvOLeGuQu7l0cnyW6WK+xMhF1wV8O9F1IdggyeysYIpP/v8rCtmjd268AqploBJ3cM3qau1F9NYBCSUPhu9eZfB0JRhHzeFDbNxRJtG+WZjk2CuGi1W8BGM/CeJkM/3b7iHMEwCYd8JW4k8ZYLSrPUiHkKxSeL9R12+p9u6AHMlXfEfO96Nt8pQkhVP9BxH374RRvQsIl5OxACTAW9XEiqTP7aRXIBSOxX6p3DxUXl6Ogn0d9U5rIu4SUAiaWW9e0k+Oeo/H3OGuerFlBIh6rW4kzVZ7ftcqzVRz9QgnrSy2r93BYzTWwM3eifkFQwtgnBSvXxM151leHOJ9r3PAiRup7V90WZBD4zytQSMaOc+fcdIWscP88sPcLXZEb6n6y7Ja3t5ASO58dXLw9EvqS4CsRYI08ltH85L/cq37dKgpvu33lsx1ZDksiMKtZW7tXhV1DZ9thl1JH/3f9QLRFz+02mJ6FD4PCJRYQvDDs5J4j7rf76FUlcBr+9bAN0sRnPL6UOms="
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then $(set | grep PYPI_ | python -c "import sys;print('\n'.join(['unset %s' % l.split('=')[0] for l in sys.stdin.readlines() if l.startswith('PYPI')]))"); fi
- $PYTHON_EXE -m pygame.tests.__main__ --exclude opengl --time_out 300
after_success:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source .travis_osx_after_success.sh; fi
after_script:
- rm -f .travis_tmp
deploy:
provider: releases
api_key:
secure: a/mP9Vl75QnRaemO5VZQWlqg4o5zi2Z/P8GY78QwGHTSt8KhnOBTJkEIu8ONxxCJToUqcZ96xHK4DwnyZNZknRW3TS8z6iglO6P4E0Gjn7NdYbM1BQ3vD0t+TTKO/1mFxfTFOyjuNvlESGog5ZoT4ICCEBacqfSwfE/kaHzbrMT09naVECSEqy7GFCmSIcvhd0Vg5C88aEbg2tzC0xpnlikUFkupRbCo/Osc78sH3FR1VxRz07NRLdQPD/a+beI/c85PrjkcO9H5c32kpHuuRquWO7lrJVolUKHj77zIBE59NuvAvznp6vK2/RKg5GoDHIDdMDqWm82hZaOOY2ldvj8TIJjZKfY0TBI4RkrF4hNt90RhuLqIVU7zhhpfuFjdtTDTCsDZs1a2CSqgAuORGzYz+WWWiBxR9XMnqWxlRYdmwAvxZYuWMdj8DNI+lOoLILETtVJS+E5h8ZQn8SUu+u6i26tfuhu08kQpN6CP6WRMpT7qMvNoUcXy463T6qXSmyAIRazve036dHkCLmsAGp99fGvrcJBom4CCNIIrWBTeCRp23mkPrliCJ95PnFUR97NB5dGdsGbYxJzqhrQpEPLFX67ZL1d6MKDONTGeceqlsbz741hL6ZOIj5ozwm15qAvVxS/nPWRE1J+FkXzfOzb88gRIH8vbCC8PEd03fP0=
file: dist/*.whl
file_glob: true
skip_cleanup: true
on:
condition: $TRAVIS_OS_NAME = osx
tags: true