vorta/.travis.yml

102 lines
2.1 KiB
YAML
Raw Normal View History

2018-11-20 07:18:46 +00:00
language: generic
2018-11-20 05:30:32 +00:00
addons:
apt:
packages:
- xvfb
2018-11-20 06:56:06 +00:00
- herbstluftwm
2018-11-20 06:42:26 +00:00
- libssl-dev
- openssl
- libacl1-dev
- libacl1
- build-essential
2018-11-20 07:06:11 +00:00
homebrew:
2018-11-20 08:04:59 +00:00
update: false
2018-11-20 07:06:11 +00:00
packages:
- openssl
- readline
2018-11-20 08:34:09 +00:00
- xz
2018-11-20 08:04:59 +00:00
- pyenv
2018-11-20 07:06:11 +00:00
- pyenv-virtualenv
casks:
- xquartz
2018-11-20 09:19:59 +00:00
2018-11-20 05:26:43 +00:00
cache:
2018-11-20 07:18:46 +00:00
directories:
- $HOME/.cache/pip
2018-11-20 07:46:03 +00:00
- $HOME/.pyenv/versions
- $HOME/Library/Caches/Homebrew
2018-11-20 05:26:43 +00:00
2018-11-20 07:27:45 +00:00
sudo: required
2018-11-20 06:17:37 +00:00
dist: trusty
2018-11-20 05:26:43 +00:00
env:
global:
- SETUP_XVFB=true
2018-11-20 09:18:43 +00:00
- PYTHON=3.6.3
2018-11-20 05:26:43 +00:00
matrix:
include:
- os: linux
dist: trusty
env:
- RUN_PYINSTALLER=true
2018-11-20 06:56:06 +00:00
- os: osx
env:
- RUN_PYINSTALLER=true
2018-11-20 05:26:43 +00:00
install:
- |
if [ $TRAVIS_OS_NAME = "linux" ]; then
2018-11-20 08:17:49 +00:00
#curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
2018-11-20 08:04:59 +00:00
#git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
2018-11-20 08:17:49 +00:00
#git clone git://github.com/pyenv/pyenv-update.git $(pyenv root)/plugins/pyenv-update
2018-11-20 08:34:09 +00:00
#export PATH="/home/travis/.pyenv/shims:${PATH}"
2018-11-20 06:29:11 +00:00
export DISPLAY=:99.0
2018-11-20 06:35:00 +00:00
/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
2018-11-20 06:29:11 +00:00
sleep 3
2018-11-20 05:26:43 +00:00
elif [ $TRAVIS_OS_NAME = "osx" ]; then
2018-11-20 08:27:24 +00:00
brew upgrade pyenv
2018-11-20 05:26:43 +00:00
fi
2018-11-20 09:25:00 +00:00
pyenv install -s $PYTHON
2018-11-20 08:04:59 +00:00
eval "$(pyenv init -)"
2018-11-20 08:17:49 +00:00
pyenv shell $PYTHON
2018-11-20 05:26:43 +00:00
2018-11-20 08:27:24 +00:00
- pip install -U setuptools pip
2018-11-20 05:26:43 +00:00
- pip install .
2018-11-20 06:42:26 +00:00
- pip install borgbackup
2018-11-20 05:26:43 +00:00
- pip install -r requirements-dev.txt
before_script:
- if [ $TRAVIS_OS_NAME = "linux" ]; then (herbstluftwm )& fi
- if [ $TRAVIS_OS_NAME = "osx" ]; then (sudo Xvfb :99 -ac -screen 0 1024x768x8 )& fi
2018-11-20 06:35:00 +00:00
- sleep 3
2018-11-20 05:26:43 +00:00
script:
2018-11-20 09:19:59 +00:00
- pytest --forked
2018-11-20 05:26:43 +00:00
#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