-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
30 lines (30 loc) · 983 Bytes
/
.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
os: linux
language: python
matrix:
include:
- os: osx
language: generic
env: INSTALL_TYPE=macpython VERSION=3.6 VENV=venv
- os: osx
language: generic
env: INSTALL_TYPE=macpython VERSION=2.7 VENV=venv
required: sudo
python:
- "2.7"
- "3.5"
- "3.6"
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then git clone https://github.com/MacPython/terryfy.git; source terryfy/travis_tools.sh; get_python_environment $INSTALL_TYPE $VERSION $VENV; fi
- "export DISPLAY=:99.0"
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo systemctl start xvfb; fi
- sleep 3
install:
- python -m pip install -U pip
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install python-tk python3-tk; fi
- python -m pip install -U coverage codecov pillow nose
script:
- python -m pip install .
- python -m nose
after_success:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then coverage run nosetests; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then codecov; fi