-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
37 lines (33 loc) · 913 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
31
32
33
34
35
36
37
language: python
matrix:
include:
- os: linux
sudo: required
python: 3.7
env: TOXENV=py37
- os: osx
language: generic
env: TOXENV=py37 PATH=/usr/local/opt/python/libexec/bin:$PATH
cache: pip
before_install: |
if [ $TRAVIS_OS_NAME = linux ]; then
# Need to start xvfb to make matplotlib work
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sleep 3 # give xvfb some time to start
sudo apt-get install -y libopenblas-dev
else
brew uninstall --ignore-dependencies python
brew install python@3
sudo mkdir -p /usr/local/man
sudo chown -R "$USER:admin" /usr/local/man
fi
install:
- pip install codecov
- python setup.py install
script:
- python examples/transit_depth_example.py
- python examples/transit_depth_binned_example.py
- nosetests -v --with-coverage
after_success:
- codecov