forked from mushorg/conpot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (55 loc) · 1.34 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
language: python
python:
- '2.7'
virtualenv:
system_site_packages: false
sudo: false
cache:
- apt
- pip
before_install:
- export TRAVIS_COMMIT_MSG="$(git log --format=%B --no-merges -n 1)"
- REPO=`pwd`
- echo $REPO
- echo $TRAVIS_TAG
- pwd
addons:
apt:
packages:
- python2.7
- python-pip
- git
- unzip
- python-dev
- libevent-dev
- libsmi2ldbl
- snmp-mibs-downloader
- libxml2
- libxml2-dev
- libxml2-utils
- libmysqlclient-dev
install:
- export PYTHONIOENCODING=UTF8
- python setup.py install
- git show HEAD:conpot/__init__.py > docs/source/conpot_version.py
- pip install coveralls
before_script:
- mysql -e 'CREATE DATABASE IF NOT EXISTS conpot_unittest;'
script:
- coverage run --timid --source=conpot setup.py test
- /home/travis/virtualenv/python2.7.9/bin/conpot
- xmllint --schema conpot/tests/template_schemas/core.xsd conpot/templates/default/template.xml
after_success:
- coveralls
notifications:
irc:
- irc.freenode.org#conpot-dev
deploy:
provider: pypi
user: Johnny.Vestergaard
password:
secure: EVml8GnoBJigUe1EmsnRQWK8zGd+9fOGOzrLN4t6HRAYBZAOdnDuiuRQ6q/mZQjfhqa5zf2pxpr/ufASVoP+SLSGpfofEDHSpWiuhk2iFJy/RY6+t6O0tr8ka+2Z3X+WLCNVPNuSIlR2V8RFTXzM1aOV0Dw5DgKnEMfZ40eSwmc=
on:
repo: mushorg/conpot
all_branches: true
condition: $TRAVIS_TAG =~ ^Release_[0-9]+[.][0-9]+[.][0-9]+