-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
52 lines (45 loc) · 1.51 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
language: python
python:
- "3.4"
- "3.5"
before_install:
- sudo mkdir -p /downloads
- sudo chmod a+rw /downloads
- curl -L http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.5/sip-4.16.5.tar.gz -o /downloads/sip.tar.gz
- curl -L http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt-x11-gpl-4.11.3.tar.gz -o /downloads/pyqt4.tar.gz
# Builds
- sudo mkdir -p /builds
- sudo chmod a+rw /builds
install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get install -y libqt4-dev libqtwebkit-dev
- sudo apt-get install -y mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev
# - sudo apt-get install -y python3-sip python3-sip-dev python3-pyqt4 cmake
# Qt4
- pushd /builds
# SIP
- tar xzf /downloads/sip.tar.gz --keep-newer-files
- pushd sip-4.16.5
- python configure.py
- make
- sudo make install
- popd
# PyQt4
- tar xzf /downloads/pyqt4.tar.gz --keep-newer-files
- pushd PyQt-x11-gpl-4.11.3
- python configure.py -c --confirm-license --no-designer-plugin -e QtCore -e QtGui -e QtTest -e QtWebKit -e QtNetwork -e QtSvg
- make
- sudo make install
- popd
# Builds Complete
- popd
- sudo apt-get install -y python3-dev python3-pyqt4
- grep "^[a-zA-Z]" requirements.txt | xargs -n 1 -L 1 pip install -U
- pip install -e .[test]
- pip install codecov
script:
- python setup.py test
# - pylint orangecontrib # False positives for Qt members
after_success:
- codecov