forked from Exa-Networks/exabgp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (70 loc) · 2.54 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
language: python
python:
- "2.6"
- "2.7"
- "3.7"
- "pypy"
matrix:
# allow_failures:
# - python: "3.7"
include:
- python: "3.7"
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python >= 3.7 (travis-ci/travis-ci#9069)
# before_install: true # override the main before_install
# install: pip install flake8
# 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
# after_success: true # override the main after_success
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y python-pip python-dev
install:
- sudo pip install coveralls
- sudo pip install nose
- sudo pip install psutil
- sudo pip install six
- sudo pip install scrutinizer-ocular
script:
- export INTERPRETER=python
- export SKIPCLEANUP=exabgp
- sbin/exabgp --version
- sbin/exabgp --fi > etc/exabgp/exabgp.env
- set pipefail
- ./qa/bin/parsing
- ./qa/bin/functional all
- env exabgp_tcp_bind='' ./sbin/exabgp ./etc/exabgp/api-open.conf --decode FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:003C:02:0000001C4001010040020040030465016501800404000000C840050400000064000000002001010101
- env exabgp_log_enable=false nosetests --with-coverage ./qa/tests/*_test.py
# - coverage run -m unittest discover -s qa/tests -p *_test.py
# now run the testsuite again with python3
- export INTERPRETER=python3
- sbin/exabgp --version
- sbin/exabgp --fi > etc/exabgp/exabgp.env
- set pipefail
- ./qa/bin/parsing
- ./qa/bin/functional all
- env exabgp_tcp_bind='' ./sbin/exabgp ./etc/exabgp/api-open.conf --decode FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:003C:02:0000001C4001010040020040030465016501800404000000C840050400000064000000002001010101
# - env exabgp_log_enable=false nosetests3 --with-coverage ./qa/tests/*_test.py
after_success:
- coveralls
- ocular
notifications:
irc:
channels: "irc.freenode.org#exabgp"
template:
- "%{repository}@%{branch}: %{message} (%{build_url})"
on_success: change
on_failure: change
email: true
webhooks:
urls:
- https://webhooks.gitter.im/e/48936e41bd3f866cce4e
# options: [always|never|change] default: always
on_success: always
on_failure: always
on_start: false
sudo: required
dist: trusty