greenhouse/.travis.yml

71 lines
2.0 KiB
YAML
Raw Normal View History

2016-12-29 22:55:12 -05:00
# vim: set ts=2 et:
2017-01-02 20:50:02 -05:00
# run xvfb with 32-bit color
# xvfb-run -s '-screen 0 1600x1200x24+32' command_goes_here
2016-12-29 22:55:12 -05:00
matrix:
include:
2017-01-03 22:09:33 -05:00
# Python 2.7 + QT4
- os: linux
dist: trusty
sudo: required
language: generic
python: "2.7"
env:
- QT=4
2017-01-03 22:26:46 -05:00
- CONDA=4.2.0
2017-01-03 22:09:33 -05:00
addons:
apt:
packages:
- cmake
#- python-qt4
#- pyqt4-dev-tools
- xvfb
before_install:
# ref: https://www.continuum.io/downloads
- curl -O https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
2017-01-03 22:26:46 -05:00
# ref: http://conda.pydata.org/docs/help/silent.html
- /bin/bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p $HOME/anaconda2
- export PATH="$HOME/anaconda2/bin:$PATH"
2017-01-03 22:09:33 -05:00
# ref: http://stackoverflow.com/questions/21637922/how-to-install-pyqt4-in-anaconda
2017-01-03 22:26:46 -05:00
- conda create -y -n labelImg-py2qt4 python=2.7
2017-01-03 22:09:33 -05:00
- source activate labelImg-py2qt4
2017-01-03 22:26:46 -05:00
- conda install -y pyqt=4
- conda install -y lxml
2017-01-03 22:09:33 -05:00
- make qt4py2
- xvfb-run make testpy2
2016-12-29 22:55:12 -05:00
2017-01-03 22:09:33 -05:00
# Python 3 + QT5
- os: linux
dist: trusty
sudo: required
language: generic
python: "3.5"
env:
- QT=5
2017-01-03 22:26:46 -05:00
- CONDA=4.2.0
2017-01-03 22:09:33 -05:00
addons:
apt:
packages:
- cmake
- xvfb
before_install:
# ref: https://www.continuum.io/downloads
- curl -O https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
2017-01-03 22:26:46 -05:00
# ref: http://conda.pydata.org/docs/help/silent.html
- /bin/bash Anaconda3-4.2.0-Linux-x86_64.sh -b -p $HOME/anaconda3
- export PATH="$HOME/anaconda3/bin:$PATH"
2017-01-03 22:09:33 -05:00
# ref: http://stackoverflow.com/questions/21637922/how-to-install-pyqt4-in-anaconda
2017-01-03 22:26:46 -05:00
- conda create -y -n labelImg-py3qt5 python=3.5
2017-01-03 22:09:33 -05:00
- source activate labelImg-py3qt5
2017-01-03 22:26:46 -05:00
- conda install -y pyqt=5
- conda install -y lxml
2017-01-03 22:09:33 -05:00
- make qt5py3
- xvfb-run make testpy3
2017-01-03 22:26:46 -05:00
2016-12-29 22:55:12 -05:00
script:
- exit 0