forked from amccaugh/phidl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (24 loc) · 752 Bytes
/
.travis.yml
File metadata and controls
29 lines (24 loc) · 752 Bytes
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
language: python
python:
- "2.7"
- "3.5"
- "3.6"
# matrix:
# include:
# - python: "3.7"
# dist: xenial
# sudo: required
before_install:
# Tricks to avoid matplotlib error about X11:
# 'no display name and no $DISPLAY environment variable'
# http://docs.travis-ci.com/user/gui-and-headless-browsers/#Starting-a-Web-Server
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- pip install --upgrade pip
- pip install -U matplotlib==2.2.3 # Needed because Travis CI pulls 3.0.2 even though it doesn't work with Python 2.7
# - pip install -U scipy==1.1.0 # Needed because 1.2.0 has UTF-8 issues
- python setup.py install
script:
- python ./phidl/phidl_tutorial_example.py
- pytest