radicale/.travis.yml

69 lines
2.1 KiB
YAML
Raw Normal View History

2015-07-17 17:56:06 +02:00
language: python
2017-03-04 14:34:57 +01:00
sudo: false
2018-09-05 11:30:24 +02:00
env: PIP=pip3 PYTHON=python3
2019-06-15 10:01:20 +02:00
dist: xenial
2017-03-04 14:34:57 +01:00
matrix:
include:
- os: linux
python: 3.5
- os: linux
python: 3.6
2019-06-15 10:01:20 +02:00
- os: linux
python: 3.7
2017-03-04 14:34:57 +01:00
- os: osx
language: generic
2018-09-05 11:30:24 +02:00
- os: linux
2018-09-08 14:42:22 +02:00
python: 3.5
2018-09-05 11:30:24 +02:00
sudo: required
env: WINE_PYTHON=3.5.4 PIP='wine pip' PYTHON='wine python'
2015-07-17 17:56:06 +02:00
notifications:
webhooks:
- https://coveralls.io/webhook?repo_token=COVERALLS_REPO_TOKEN
2017-03-04 14:34:57 +01:00
before_install:
2018-09-05 11:30:24 +02:00
- |
if [ "${TRAVIS_OS_NAME}" == linux -a -n "${WINE_PYTHON}" ]; then
pushd "$(mktemp -d)" &&
sudo dpkg --add-architecture i386 &&
wget https://dl.winehq.org/wine-builds/winehq.key -O winehq.key &&
sudo apt-key add winehq.key &&
2018-09-05 11:30:24 +02:00
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ &&
sudo apt-get update &&
sudo apt-get install -y --no-install-recommends unzip winehq-stable &&
curl "https://www.python.org/ftp/python/${WINE_PYTHON}/python-${WINE_PYTHON}-embed-win32.zip" -o python.zip &&
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py &&
unzip python.zip -d python &&
pushd python &&
LIB="$(echo python*.zip)" &&
mv "${LIB}" "${LIB}.tmp" &&
unzip "${LIB}.tmp" -d "${LIB}" &&
rm "${LIB}.tmp" &&
popd &&
mv python "$(winepath 'C:\python')" &&
printf %b 'Windows Registry Editor Version 5.00\n'\
'[HKEY_CURRENT_USER\\Environment]\n'\
'"Path"="c:\\\\windows;c:\\\\windows\\\\system;c:\\\\python;c:\\\\python\\\\scripts"\n' > path.reg &&
wine regedit path.reg &&
wine python get-pip.py &&
rm -rf "$(dirs -l +0)" &&
popd
fi
2015-07-17 17:56:06 +02:00
2016-04-10 11:13:54 +02:00
install:
- pip3 install --upgrade coverage coveralls
2018-09-05 11:30:24 +02:00
- ${PIP} install --upgrade --editable .[test,md5,bcrypt]
2016-04-10 11:13:54 +02:00
2016-05-12 19:24:24 +02:00
script:
2018-09-05 11:30:24 +02:00
- ${PYTHON} setup.py test
2018-09-08 14:42:22 +02:00
after_success:
2018-09-08 17:01:42 +02:00
- |
if [ "${TRAVIS_OS_NAME}" == linux -a -n "${WINE_PYTHON}" ]; then
config="$(mktemp)"
printf '[paths]\nsource =\n .\n %s\n' "$(winepath --windows '')" >"${config}"
coverage3 combine --rcfile "${config}" .coverage
fi
- env COVERALLS_PARALLEL=true coveralls