/
.travis.yml
97 lines (91 loc) · 2.94 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
language: python
matrix:
include:
- os: linux
sudo: required
python: 2.7
env:
- PYTHONPATH=.
- COVERALLS_PARALLEL=true
- os: linux
sudo: required
python: 3.2
env:
- PYTHONPATH=.
- COVERALLS_PARALLEL=true
- os: linux
sudo: required
python: 3.3
env:
- PYTHONPATH=.
- COVERALLS_PARALLEL=true
- os: linux
sudo: required
python: 3.4
env:
- PYTHONPATH=.
- COVERALLS_PARALLEL=true
- os: linux
sudo: required
python: 3.5
env:
- PYTHONPATH=.
- COVERALLS_PARALLEL=true
- os: linux
sudo: required
python: 3.6
env:
- PYTHONPATH=.
- COVERALLS_PARALLEL=true
- os: linux
sudo: required
python: nightly
env:
- PYTHONPATH=.
- COVERALLS_PARALLEL=true
- os: linux
sudo: required
python: pypy
env:
- PYTHONPATH=.
- COVERALLS_PARALLEL=true
- os: osx
language: generic
env:
- PYTHONPATH=.
- COVERALLS_PARALLEL=true
allow_failures:
- os: osx
- python: 3.2
- python: 3.6-dev
- python: nightly
- python: pypy
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then tests/osx.sh; fi
# virtualenv>=14.0.0 has dropped Python 3.2 support (and pypy3 is based on py32)
- if [[ "$TRAVIS_PYTHON_VERSION" == 3.2 ]]; then pip install "virtualenv<14.0.0" ; fi
- pip install pytest pytest-cov
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then travis_retry pip install coverage==3.7.1; fi
- if [ "$TRAVIS_PYTHON_VERSION" != "3.2" ]; then travis_retry pip install coverage; fi
- pip install coveralls
- pip install codeclimate-test-reporter
- pip install numpy
- if [[ "$TRAVIS_PYTHON_VERSION" != 3.3 ]] && [[ "$TRAVIS_PYTHON_VERSION" != 3.2 ]]; then pip install matplotlib ; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo apt-get install python-tk; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo apt-get install python3-tk; fi
before_script:
- "export DISPLAY=:99.0"
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sh -e /etc/init.d/xvfb start; fi
- sleep 3 # give xvfb some time to start
- VERS=`python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))'`
script:
- cd tests
- coverage run --source=appJar widget_test.py
after_success:
- coveralls
- CODECLIMATE_REPO_TOKEN=3b1c31ab1ba5ee5eb7aaf75efd1245ee00e38a070f7a82fece4b5f7b9ca5f7f7 codeclimate-test-reporter
addons:
code_climate:
repo_token: 3b1c31ab1ba5ee5eb7aaf75efd1245ee00e38a070f7a82fece4b5f7b9ca5f7f7
notifications:
webhooks: https://coveralls.io/webhook?repo_token=7HaWcXyVGa6t5IXOXtZPb71ZCYWCYkz7Ay2pS