forked from SpamExperts/OrangeAssassin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (49 loc) · 3.14 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
language: python
sudo: false
os:
- linux
env:
matrix:
- USE_SQLALCHEMY=true
- USE_SQLALCHEMY=false
python:
- '2.7.11'
- '3.5'
- pypy
- pypy3
install:
- pip install -r requirements/base.txt;
- if [[ $USE_SQLALCHEMY == false ]]; then pip install pymysql; fi
- if [[ $USE_SQLALCHEMY == true ]]; then pip install sqlalchemy; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.* ]]; then pip install -r requirements/python2.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.* ]]; then pip install -r requirements/python3.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then pip install -r requirements/pypy2.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.2 ]]; then pip install -r requirements/pypy3-build-requirements.txt;pip install -r requirements/pypy3.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == pypy3 ]]; then pip install -r requirements/pypy3-build-requirements.txt;pip install -r requirements/pypy3.txt; fi
- pip install -r requirements/tests.txt
- python setup.py install
- wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
- gunzip GeoIP.dat.gz
- wget http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
- gunzip GeoIPv6.dat.gz
before_script:
- if [[ $USE_SQLALCHEMY == false ]]; then mysql -u root -e 'create database spampad;'; fi
script:
- py.test tests/unit/ --cov oa --cov scripts --cov-report term-missing
- env USE_PICKLES=0 py.test tests/functional/
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then env USE_PICKLES=1 py.test tests/functional/; fi
#- py.test tests/profiling/
after_script:
- cat .profile_results/*report.txt
- pep8 --show-source oa
after_success:
- bash <(curl -s https://codecov.io/bash)
- coveralls
#notifications:
# email:
# secure: KQxfGXb3gk23vdaf1WtbFBVhIB1yreEJH8aBn4CWFKw1DcR8Yu/plPWXSxXtOiaJpsZHbmG9Zry+Hft+qUE3LY4EreqVDcDVsn3i/fJ5Yj4D0ag/3g+t5uW9fq8fjCOQB5TPft2yKJDrV/xrUvVOw/UiY0M6rBdJIg2zuVtb3kfSAHD8IF6BVJKztwPJf+reKvP5UWKH40wJQMOTBqooiavtQFAxYJgz6DtWdm+GNE+islMshFp7uZ5sn//qVVXZr0K1Cl60A04L5L4hKAiaF5FEKBGeu+0OxIXC8hAplMRmEQeS2kbqNv18W3u6OMrUalPx/XiF4u0kVuZNnHdDlLQeqClQgYW96pkvt4Z79H856dvWzE4/faeula6PkF9vd1GrIX0AddV6xxXFUKrXgaJrLLL0bhyTkU/GVQyutv2kuzm2ueCL7CFB+3KWGz0KDFaMzXz1p+jcIGSLLFVDjgw5Nv+z0C4iqPfZDai9WM5WzNwMAQHO8kUTlMwNmJj1x5vYSEbk+rEpfph2RHXUqPlhI56hyGPiDhtqW5oc83ASVg0I6b0SOiGQzbaBet0sKA/di3/2psLwGAxRAeLMofThCt/VjgmIwPVBOZ6lPToD/ytMxFhSLM7ttt0UKO9sC3A1YG6ziItVeX/w68k7X0USQbDy5ZnDh2tc+P/u61k=
# slack:
# secure: bHvycDnFh3TAzQRWl0uwCnRuiPSqB9vvXkvfDlI5qZe5YqFFoDLHub/1DDNrPzbhUIhFKwXP1be1Xq1USKL3qKUhPWdgnOZ0RsXxXIlA0ow8QSE+2tmavzeDIjumyZM4IgvVHOVxCqh1KRGBDQ9Bc07bsN6Fie0/4PDSUHEZ5b2qq/bJxkdSAXocMaddiLAWcUxCH1JOf63Wtqp7MczBQRz/K0DC+XWqfC3IcWtcneWFjxwsHUPrMHCu8KHE01jlvX87Kb6MOKu2YfwLlywcFzQg2d2jZfdFnv0nooyWfcV0VFJmSAAagKxrGBJviEofIX17Uf+iO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