forked from pygame/pygame
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
144 lines (132 loc) · 6.21 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
language: python
cache:
directories:
- $HOME/.cache/pip
- $HOME/Library/Caches/Homebrew
- $HOME/HomebrewLocal
- $HOME/.ccache
- /Library/Caches/Homebrew
- $HOME/Library/Caches/pip/wheels
- /Library/Caches/pip/wheels
# So commits do not get built twice.
# Only test master and tagged releases on push
# always test things that aren't pushes (like PRs)
if: type != push OR branch = master OR branch =~ /^\d+\.\d+(\.\d+)?(-\S*)?$/ OR tag ~= /^\d+\.\d+(\.\d+)?(.\S*)?$/
matrix:
include:
- os: linux
sudo: required
dist: xenial
python: 2.7
- os: linux
sudo: required
dist: xenial
python: 3.5
- os: linux
sudo: required
dist: xenial
python: 3.6
- os: linux
sudo: required
python: 3.7
dist: xenial
# pypy build is broken. The pypy on travis is really old.
# - os: linux
# sudo: required
# python: pypy
# 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: xcode7.3
language: generic
env:
- PY_VERSION=3
- PY_VERSION_=3.7
- MAKEFLAGS=-j8
- GITHUB_UPLOAD=yes
- os: osx
osx_image: xcode7.3
language: generic
env:
- PY_VERSION=2
- MAKEFLAGS=-j8
- GITHUB_UPLOAD=yes
- os: osx
osx_image: xcode7.3
language: generic
env:
- PY_VERSION=3
- PY_VERSION_=3.6
- MAKEFLAGS=-j8
- GITHUB_UPLOAD=yes
# - os: osx
# osx_image: xcode7.3
# language: generic
# env:
# - PY_VERSION=pypy3
# - MAKEFLAGS=-j8
# - os: osx
# osx_image: xcode7.3
# language: generic
# env:
# - PY_VERSION=pypy2
# - MAKEFLAGS=-j8
# # - MACOSX_DEPLOYMENT_TARGET=10.6
allow_failures:
- python: pypy
- os: osx
env: PY_VERSION=pypy2
- os: osx
env: PY_VERSION=pypy3
before_install:
- export PATH=/usr/lib/ccache:$PATH
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source buildconfig/ci/travis/.travis_osx_before_install.sh; fi
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update
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 \
libtiff5-dev libx11-6 libx11-dev xfonts-base xfonts-100dpi xfonts-75dpi \
xfonts-cyrillic fluid-soundfont-gm musescore-soundfont-gm
fi
install:
- "python buildconfig/ci/travis/.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 buildconfig/ci/travis/.travis_osx.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then PYTHON_EXE=python PIP_CMD=pip; fi
- "$PIP_CMD install --upgrade pip"
- "$PIP_CMD install --upgrade numpy"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then $PIP_CMD install delocate twine; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then $PYTHON_EXE setup.py install -noheaders -auto; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source buildconfig/ci/travis/.travis_osx_install.sh; fi
env:
global:
- SDL_VIDEODRIVER=dummy
- SDL_AUDIODRIVER=disk
- secure: "VSoe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n0d9U5rIu4SUAiaWW9e0k+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 buildconfig/ci/travis/.travis_osx_after_success.sh; fi
after_script:
- rm -f .travis_tmp
deploy:
# https://docs.travis-ci.com/user/deployment/releases/
- provider: releases
api_key:
secure: MzyOmZ6HU16YGuiT66kuTDeGO7Ue+fKCf7HBztuxiHGyVVYdYpDgMIgEKqZ7vAQy9KfdXMzlGkwGesMnOm+i6eU0/USG19yP11ABWJhXe7mv0sGXvQpbMnARARyj73+bSZuNfXrYWOQI9R87LIGqFC3ZEKSgdNdaUQevwW5VG0tEHIeA1FUEL9OTDKsK1KdiG8dwhABZRoC4zak200DwD+1wVyBNSmVBNRa9qRuDeN/MTguqWNLyh1vXSYGB1sl2j0YVWz3uvn/Og0f9tZjcYTZ8/l38Qqvs5EPWmTm8WEtrbYFbPcoctiz1HfQ7ZWi9exJXnNVjguUknJfIsUERZKhqLzR961WI/NRaWtTvKd6RcTYERr+BfvP5nbKryEiifTJKP3OUMKzMAhPPxCp8WPk02lnDAjaxUg6TZ8/lzt6ntDfSfM/50vsN/BRInXU6G4sNb6feklFSpgoqatSKk45V+7jXnCXMmiPbSAdYAcZn/PllFdob7wYOfOED2ynKubZiSI1fRQTdMsUZP0H1Ax5zQpUtEbaXnD1DQRv+UlE0TyQxV4w2D8ZAFKBPxOqDKzODCbJ7fVvUR0SSO0+a8w2rWp2h3MIs+HGDdYII28cM1CHRyqnlMjo6o9eEd/Wi/f5hoL5RkN8OuLUHBLp4mC2D69XI8XzHreigqs1lJgg=
file_glob: true
file:
- dist/*.whl
skip_cleanup: true
draft: true
on:
all_branches: true
# branches:
# only:
# - master
tags: true
repo: pygame/pygame
condition: $GITHUB_UPLOAD = yes