Skip to content

Commit

Permalink
change travis-ci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mangin committed May 12, 2019
1 parent 709c1aa commit 80a165e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 39 deletions.
35 changes: 2 additions & 33 deletions .travis.yml
Expand Up @@ -5,32 +5,13 @@ python:
- "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
- pip install --use-mirrors -r requirements.txt
- pip install --use-mirrors -r qa/requirements.txt

script:
- export INTERPRETER=python
Expand All @@ -42,16 +23,6 @@ script:
- ./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
Expand All @@ -73,5 +44,3 @@ notifications:
on_failure: always
on_start: false

sudo: required
dist: trusty
6 changes: 6 additions & 0 deletions qa/requirements.txt
@@ -0,0 +1,6 @@
# running the test suite/code
six
coveralls
nose
psutil
scrutinizer-ocular
7 changes: 1 addition & 6 deletions requirements.txt
@@ -1,9 +1,4 @@
# ExaBGP dependencies are included in its code tree
# You only need to install the following for :
# You only need to install the following for healthcheck.py

# healthcheck.py
ipaddr

# running the test suite/code
nose
psutil

0 comments on commit 80a165e

Please sign in to comment.