forked from OWASP/pysap
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (60 loc) · 1.96 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
# Travis configuration
language: python
dist: trusty
sudo: false
matrix:
include:
- os: linux
python: 2.7
env:
- CXX=clang++ CC=clang
- os: linux
python: 2.7
env:
- CXX=g++ CC=gcc
- os: osx
language: generic
addons:
apt:
packages:
- pandoc
- texlive-base
before_script:
# Install system requirements for OSX (pylibpcap, libdnet and pandoc)
- if [ ${TRAVIS_OS_NAME} == "osx" ]; then
mkdir -p /Users/travis/Library/Python/2.7/lib/python/site-packages;
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/travis/Library/Python/2.7/lib/python/site-packages/homebrew.pth;
brew update;
brew install --with-python libdnet;
brew install https://raw.githubusercontent.com/secdev/scapy/master/.travis/pylibpcap.rb;
brew install pandoc;
fi
install:
- pip2 install .
- pip2 install flake8 six
- pip2 install -r requirements-docs.txt
- pip2 install -r requirements-optional.txt
before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
- python setup.py test
- python setup.py doc
before_deploy:
# Build a source and wheel artifact
- python setup.py sdist
- python setup.py bdist_wheel
deploy:
provider: releases
api_key:
secure: jph0ZzpFytrPyZKm71s7LwaXvQ2QkGMM1DgwiBu4p9E99vAKvpNdVOXvyp4BmMp7PEksUKtPYpyGWIQCoTY7ffJUf72VbXLxLfsNqpGMP62UteVt5ssleYvpzVqfTt26gqGvsMZB2EhP9zpH3AgYaGuJIB1L0/CM+5Ilf3u2j4I=
file:
- "dist/*.whl"
- "dist/*.tar.gz"
file_glob: true
skip_cleanup: true
on:
tags: true
repo: CoreSecurity/pysap