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
|
|
|
|
|
|
2021-03-09 01:28:31 +01:00
|
|
|
jobs:
|
2016-12-29 22:55:12 -05:00
|
|
|
include:
|
|
|
|
|
|
2017-01-03 22:09:33 -05:00
|
|
|
# Python 3 + QT5
|
|
|
|
|
- os: linux
|
2021-03-09 01:28:31 +01:00
|
|
|
dist: focal
|
2017-01-03 22:09:33 -05:00
|
|
|
language: generic
|
2021-03-09 01:28:31 +01:00
|
|
|
python: "3.6"
|
2017-01-03 22:09:33 -05:00
|
|
|
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:
|
2020-05-23 11:37:06 -07:00
|
|
|
# ref: https://repo.anaconda.com/archive/
|
|
|
|
|
- curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh
|
2017-01-03 22:26:46 -05:00
|
|
|
# ref: http://conda.pydata.org/docs/help/silent.html
|
2020-05-23 11:37:06 -07:00
|
|
|
- /bin/bash Anaconda3-2020.02-Linux-x86_64.sh -b -p $HOME/anaconda3
|
2017-01-03 22:26:46 -05:00
|
|
|
- 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
|
2021-03-09 01:28:31 +01:00
|
|
|
- conda create -y -n labelImg-py3qt5 python=3.6
|
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
|
|
|
|
2021-03-09 01:28:31 +01:00
|
|
|
# Pipenv Python 3.7.5 + QT5 - Build .app
|
2018-03-24 15:33:24 -03:00
|
|
|
- os: osx
|
|
|
|
|
language: generic
|
2018-03-24 15:56:59 -03:00
|
|
|
env:
|
|
|
|
|
- PIPENV_VENV_IN_PROJECT=1
|
|
|
|
|
- PIPENV_IGNORE_VIRTUALENVS=1
|
|
|
|
|
install:
|
2021-03-09 01:28:31 +01:00
|
|
|
- python3 --version
|
2018-03-24 16:08:29 -03:00
|
|
|
- pip3 install pipenv
|
2019-05-25 14:56:25 -07:00
|
|
|
- pipenv install pyqt5 lxml
|
2019-12-22 21:34:56 -08:00
|
|
|
- pipenv run pip install pyqt5==5.13.2 lxml
|
2018-03-24 16:17:25 -03:00
|
|
|
- pipenv run make qt5py3
|
2018-03-24 15:33:24 -03:00
|
|
|
- rm -rf build dist
|
2018-03-24 16:17:25 -03:00
|
|
|
- pipenv run python setup.py py2app
|
2018-03-24 16:27:18 -03:00
|
|
|
- open dist/labelImg.app
|
2018-03-24 15:33:24 -03:00
|
|
|
|
2016-12-29 22:55:12 -05:00
|
|
|
script:
|
|
|
|
|
- exit 0
|