# vim: set ts=2 et: # run xvfb with 32-bit color # xvfb-run -s '-screen 0 1600x1200x24+32' command_goes_here matrix: include: # Python 2.7 + QT4 - os: linux dist: trusty sudo: required language: generic python: "2.7" env: - QT=4 addons: apt: packages: - cmake - python-qt4 - pyqt4-dev-tools - xvfb before_install: - sudo pip install lxml - make qt4py2 - xvfb-run make testpy2 # Python 2.7 + QT4 - os: linux dist: trusty sudo: required language: generic python: "2.7" env: - CONDA=2.7 - QT=4 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 - /bin/bash Anaconda2-4.2.0-Linux-x86_64.sh # ref: http://stackoverflow.com/questions/21637922/how-to-install-pyqt4-in-anaconda - conda create -n labelImg-py2qt4 python=2.7 - source activate labelImg-py2qt4 - conda install pyqt=4 - conda install lxml - make qt4py2 - xvfb-run make testpy2 # Python 2 + QT5 # disabled; can't get it to work #- os: linux # dist: trusty # sudo: required # language: generic # python: "2.7" # env: # - QT=5 # addons: # apt: # packages: # - cmake # - pyqt5-dev-tools # - xvfb # before_install: # - sudo apt-get update # - sudo apt-get install -y python-pip # - sudo pip install lxml # - pyrcc5 --help || true # does QT5 support python2 out of the box? # - make qt5py3 # - xvfb-run make testpy2 # Python 3 + QT4 - os: linux dist: trusty sudo: required language: generic python: "3.4" env: - QT=4 addons: apt: packages: - cmake - python3-pyqt4 - pyqt4-dev-tools - xvfb before_install: - sudo apt-get update - sudo apt-get install -y python3-pip - sudo pip3 install lxml - make qt4py3 - xvfb-run make testpy3 # Python 3 + QT5 - os: linux dist: trusty sudo: required language: generic python: "3.4" env: - QT=5 addons: apt: packages: - cmake - pyqt5-dev-tools - xvfb before_install: - sudo apt-get update - sudo apt-get install -y python3-pip - sudo pip3 install lxml - make qt5py3 - xvfb-run make testpy3 # Python 3 + QT5 - os: linux dist: trusty sudo: required language: generic python: "3.5" env: - CONDA=3.5 - QT=5 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 - /bin/bash Anaconda3-4.2.0-Linux-x86_64.sh # ref: http://stackoverflow.com/questions/21637922/how-to-install-pyqt4-in-anaconda - conda create -n labelImg-py3qt5 python=3.5 - source activate labelImg-py3qt5 - conda install pyqt=5 - conda install lxml - make qt5py3 - xvfb-run make testpy3 # OS X 10.10 Python 2 + QT4 - os: osx osx_image: xcode6.4 # OS X 10.10 sudo: required language: generic python: "2.7" env: - QT=4 before_install: - brew install libxml2 - brew install cartr/qt4/qt - brew linkapps qt - which python pip - python --version - sudo -H easy_install-2.7 lxml || true - python -c 'import sys; print(sys.path)' - python -c 'import lxml' - make qt4py2 - python -c 'help("modules")' - make testpy2 # OS X 10.10 Python 3 + QT4 - os: osx osx_image: xcode6.4 # OS X 10.10 sudo: required language: generic python: "3.6" env: - QT=4 before_install: - brew install libxml2 - brew install cartr/qt4/qt - brew linkapps qt - which python3 pip3 - python3 --version - sudo -H easy_install-3.6 lxml || true - python3 -c 'import sys; print(sys.path)' - python3 -c 'import lxml' - make qt4py3 - python3 -c 'help("modules")' - make testpy3 # OS X 10.10 Python 3 + QT5 - os: osx osx_image: xcode6.4 # Xcode 6.4, OS X 10.10 sudo: required language: generic python: "3.6" env: - QT=5 before_install: #- brew update - brew install libxml2 - brew install pyqt5 - which python3 pip3 - python3 --version #- sudo -H pip3 install --user --upgrade lxml # pyqt5 installs python3.x, which installs pip3 - sudo -H easy_install-3.6 lxml || true - python3 -c 'import sys; print(sys.path)' - python3 -c 'import lxml' - make qt5py3 - python3 -c 'help("modules")' - make testpy3 # FIXME: does not work, segfault on travis-ci # OS X 10.11 Python 3 + QT5 - os: osx osx_image: xcode8 # Xcode 8, OS X 10.11 sudo: required language: generic python: "3.6" env: - QT=5 before_install: #- brew update - brew install libxml2 - brew install pyqt5 - which python3 pip3 - python3 --version #- sudo -H pip3 install --user --upgrade lxml # pyqt5 installs python3.x, which installs pip3 - sudo -H easy_install-3.6 lxml || true - python3 -c 'import sys; print(sys.path)' - python3 -c 'import lxml' - make qt5py3 - python3 -c 'help("modules")' - make testpy3 # FIXME: does not work, segfault on travis-ci # OS X 10.12 Python 3 + QT5 - os: osx osx_image: xcode8.2 # OS X 10.12 sudo: required language: generic python: "3.6" env: - QT=5 before_install: #- brew update - brew install libxml2 - brew install pyqt5 - which python3 pip3 - python3 --version #- sudo -H pip3 install --user --upgrade lxml # pyqt5 installs python3.x, which installs pip3 - sudo -H easy_install-3.6 lxml || true - python3 -c 'import sys; print(sys.path)' - python3 -c 'import lxml' - make qt5py3 - python3 -c 'help("modules")' #- make testpy3 # FIXME: does not work, segfault on travis-ci # just make sure the app runs... :-/ - ( python3 labelImg.py ) & sleep 10; kill $! script: - exit 0