forked from pybox2d/pybox2d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (41 loc) · 1.19 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
# vi: sw=2 ts=2 sts=2 expandtab
language: python
os:
- linux
- osx
# Travis/osx doesn't support Python yet:
# see https://github.com/travis-ci/travis-ci/issues/2312
python:
# - "2.6" # no dictionary comprehensions in 2.6, sorry
- "2.7"
# - "3.2" # waste of time, coverage module doesn't work
- "3.3"
- "3.4"
- "3.5"
- "3.6"
# - "pypy" # swig doesn't seem to work :(
dist: trusty
matrix:
fast_finish: true
allow_failures:
- os: osx
before_install:
- echo $TRAVIS_OS_NAME
- pip install setuptools nose coverage coveralls
# linux
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install swig3.0; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s /usr/bin/swig3.0 /usr/bin/swig; fi
# OSX
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install swig; fi
install:
- python setup.py build
- python setup.py install
script:
# run tests from test directory itself to not get Box2D confused with
# top-level dir
- cd tests
- nosetests -v -w . --with-coverage --cover-package=Box2D
after_success:
- coveralls