-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
89 lines (84 loc) · 3.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
language: python
python: '3.5'
#sudo: required
sudo: false
#required
env:
global:
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- SEGFAULT_SIGNALS=all
matrix:
#- TOXENV=3.5-check
#- TOXENV=docs
#- TOXENV=2.7-cover,3.5-coveralls
- TOXENV=2.7-nocover
#- TOXENV=3.3-cover,3.5-coveralls
#- TOXENV=3.3-nocover
#- TOXENV=3.4-cover,3.5-coveralls
- TOXENV=3.4-nocover
#- TOXENV=3.5-cover,3.5-coveralls
- TOXENV=3.5-nocover
before_install:
- python --version
- uname -a
- lsb_release -a
install:
# - sudo apt-get -qq update
# We do this conditionally because it saves us some downloading if the
# version is the same.
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- export PY=${TOXENV:0:1}.${TOXENV:2:1}
- export PYN=py${PY:0:1}${PY:2:1}
# - export YML=./conda/conda-${PYN}.yml
- echo $PY $PYN
- echo "$PY" "$PYN"
# Replace dep1 dep2 ... with your dependencies
- conda create -y -c anaconda --name $PYN python=$PY `head -n1 requirements_conda.txt`
- source activate $PYN
- python ./service/installreq.py
- python setup.py develop
# Builds Complete
- virtualenv --version
- easy_install --version
- pip --version
- pytest --version
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- python -c "import sys; from PyQt5.QtWidgets import QApplication; from PyQt5 import QtCore, QtGui, QtTest; a=QApplication(sys.argv); print ('Done!')"
script:
- pytest -x --tb=long -v
- pytest --cov --cov-report=term-missing -vv
- coverage combine --append
- coverage report
- coveralls
# - travis_wait 30 tox -v
after_failure:
#- more .tox/log/* | cat
#- more .tox/*/log/* | cat
before_cache:
- rm -rf $HOME/.cache/pip/log
cache:
directories:
- $HOME/.cache/pip
notifications:
email:
on_success: never
on_failure: always
deploy:
provider: pypi
user: "assela"
password:
secure: "CMjLBNBWHDOvDW0+J3kmRjeYQatdrNfp8CIPNYQfutHC9iL/0mb59ZLUCI1Nzbyp3CqHrYvQSf5PdDIKi2PC6QK/YL0z+M00w2xitE7KIp39B0+h65Np1eFkXnuCZ6DldfCwcwgb3QbxxHosqPgeb109YLObGXoMAN9NLBZA27YvwyKDh2Y/+DYtQcm6vUifEtgFMdYzXfjTNgi/NY/IcrMk6LhryzVl1BN73Rt99xNVtdGypKEmQan+kjhSJNHUKhtRnUXIbnXaGTyoM3VshSKcpFwGB3pGOOhPa3o+vdKxUpb7eFW7/48lYflciEsIydYyk1ne+Kr085AmqVZr6mT/qG8pGP3UINL52c7IHYeso9MeyXKugDE2KBQH/ONC9QUAymUQFj0vTZ8AZzfHxnloxTWrrKhkEEgoUyC8npcWxfDpTBBldCaBo0/fRmJnx4SQ6N46bjQ5gOkkMwgmMV+an0Qd7NjZrpI6LqDJTGwD3lo757B7nsqqfkftvItFD/ZFvap4tc5EnqAbI8YahAq/m1tHTD7clbo/naf4KclOZpGd8jElkN2lcRpCx9zpJ1k7XW3n3Yoyut5AKTHkxbHuGKzjpxpOEuomkZ/o3YKEORnZfar2U48jjtXyNFrcmrRTUjOIUz3Crx0GAuTCr9jCE/5IYRUudCf9qPPi1gY="
tags: true