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
82 lines (78 loc) · 2.24 KB
/
.travis.yml
File metadata and controls
82 lines (78 loc) · 2.24 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
language: python
matrix:
include:
- os: linux
python: 3.5
env: CC=gcc-8 CXX=g++-8
- os: linux
python: 3.6
env: CC=gcc-8 CXX=g++-8
- os: linux
python: 3.7
dist: xenial
sudo: required
env: CC=gcc-8 CXX=g++-8
- os: linux
python: pypy3.5-7.0
dist: xenial
sudo: required
env: CC=gcc-8 CXX=g++-8
- os: linux
python: nightly
dist: xenial
sudo: required
env: CC=gcc-8 CXX=g++-8
- os: osx
language: generic
env: MB_PYTHON_VERSION=3.7.1
- os: osx
language: generic
env: PYPY3_VERSION=pypy3.5-v7.0.0
- os: osx
language: generic
env: PYPY3_VERSION=pypy3.6-v7.1.1
allow_failures:
- python: nightly
- python: pypy3.5-7.0
fast_finish: true
# sudo is required to prevent xvfb crashes from container-based workers.
sudo: required
dist: trusty
cache: pip
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- 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
- pip install --requirement requirements.txt
install:
- if [[ -z "$TRAVIS_TAG" ]]; then export BUILD_FLAGS="-g"; fi
- python setup.py build $BUILD_FLAGS develop bdist_wheel --py-limited-api=cp35
- '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 python-coveralls codecov
- codecov
- coveralls
- coverage xml
- if [[ -n "$CODACY_PROJECT_TOKEN" ]]; then python-codacy-coverage -r coverage.xml || true; fi