forked from libtcod/python-tcod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
67 lines (63 loc) · 2 KB
/
.travis.yml
File metadata and controls
67 lines (63 loc) · 2 KB
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
language: python
jobs:
include:
- os: linux
python: 3.5
- os: linux
python: 3.6
- os: linux
python: 3.7
- os: linux
python: 3.8
- os: linux
python: nightly
- os: osx
language: generic
env: MB_PYTHON_VERSION=3.7.1
- os: osx
language: generic
env: PYPY3_VERSION=pypy3.6-v7.3.2 CUSTOM_REQUIREMENTS="numpy==1.18"
- os: osx
language: generic
env: PYPY3_VERSION=pypy3.7-v7.3.2 CUSTOM_REQUIREMENTS="numpy==1.18"
allow_failures:
- python: nightly
- python: pypy3.5-7.0
fast_finish: true
os: linux
dist: bionic
cache: pip
addons:
apt:
packages:
- libsdl2-dev
services:
- xvfb
before_install:
- source .travis/before_install.sh
- 'if [[ "$TRAVIS_OS_NAME" == "osx" && "$USE_OPENMP" == "true" ]]; then source .travis/install_openmp.sh; fi'
- source .travis/install_python.sh
- 'wget https://bootstrap.pypa.io/get-pip.py'
- python get-pip.py
- pip install --upgrade setuptools
- pip install --pre --upgrade wheel
- if [[ -n "$CUSTOM_REQUIREMENTS" ]]; then pip install $CUSTOM_REQUIREMENTS; fi
- pip install --requirement requirements.txt
install:
- if [[ -z "$TRAVIS_TAG" ]]; then export BUILD_FLAGS="-g"; fi
- python setup.py build $BUILD_FLAGS sdist develop bdist_wheel --py-limited-api=cp35 || (sleep 5; exit 1)
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python -m pip install delocate; fi'
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then delocate-wheel -v dist/*.whl; fi'
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then delocate-listdeps --all dist/*.whl; fi'
before_script:
- pip install --upgrade pytest pytest-cov
script:
- pytest -v
after_success:
- if [[ -n "$TRAVIS_TAG" ]]; then pip install --upgrade twine; fi
- if [[ -n "$TRAVIS_TAG" && -z "$PYPY3_VERSION" ]]; then pip install --upgrade pyOpenSSL; fi
- if [[ -n "$TRAVIS_TAG" && "$TRAVIS_OS_NAME" == "osx" ]]; then twine upload --skip-existing dist/*; fi
- pip install codacy-coverage codecov
- codecov
- coverage xml
- if [[ -n "$CODACY_PROJECT_TOKEN" ]]; then python-codacy-coverage -r coverage.xml || true; fi