1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-23 08:17:08 +00:00
vorta/.travis.yml
Manuel Riel 30c6549f0f
v0.5.2 Bugfixes and new Misc Settings Tab (#71)
* Fix uneven vspace. Fixes #67

* Add Python 3.7 to Travis. Use tox to test multiple Python versions. Fixes #72

* Add command line option to avoid forking and open main window while debugging. Fixes #73

* Use slug of profile name as archive prefix. Fixes #46

* Add settings tab. Add light system tray icon option. Fixes #56 and #74

* Incorporate review by @ThomasWaldmann
2018-12-04 10:58:12 +08:00

102 lines
1.9 KiB
YAML

language: generic
addons:
apt:
packages:
- xvfb
- herbstluftwm
- libssl-dev
- openssl
- libacl1-dev
- libacl1
- build-essential
homebrew:
update: false
packages:
- openssl
- readline
- xz
- pyenv
- pyenv-virtualenv
casks:
- xquartz
cache:
directories:
- $HOME/.cache/pip
- $HOME/.pyenv/versions
- $HOME/Library/Caches/Homebrew
sudo: required
dist: trusty
env:
global:
- SETUP_XVFB=true
- PYTHON36=3.6.3
- PYTHON37=3.7.1
matrix:
include:
- os: linux
dist: trusty
env:
- RUN_PYINSTALLER=true
- os: osx
env:
- RUN_PYINSTALLER=true
install:
- |
if [ $TRAVIS_OS_NAME = "linux" ]; then
export DISPLAY=:99.0
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset
sleep 3
# cd /opt/pyenv && git pull origin master
pyenv install -s $PYTHON36
eval "$(pyenv init -)"
pyenv shell $PYTHON36
elif [ $TRAVIS_OS_NAME = "osx" ]; then
brew upgrade pyenv
pyenv install -s $PYTHON37
pyenv install -s $PYTHON36
eval "$(pyenv init -)"
pyenv shell $PYTHON36 $PYTHON37
fi
- pip install -U setuptools pip
- pip install .
- pip install borgbackup
- pip install -r requirements-dev.txt
before_script:
- if [ $TRAVIS_OS_NAME = "linux" ]; then (herbstluftwm )& fi
- sleep 3
script:
- tox
#after_script:
#- |
# if [ $RUN_PYINSTALLER = "true" ]; then
# # Cleanup
# pip uninstall -y $PIP_DEPENDENCIES
#
# # https://github.com/wkentaro/labelme/issues/183
# if [ $TRAVIS_OS_NAME = "osx" ]; then
# pip uninstall -y Pillow
# conda install -y Pillow
# fi
#
# # Build the standalone executable
# pip install pyinstaller
# pyinstaller labelme.spec
# dist/labelme --version
# fi
branches:
only:
- master
notifications:
email: false