Use appropriate python version

This commit is contained in:
Bob Lantz
2018-07-26 13:40:12 -07:00
parent c7deeae11c
commit d96b35694a
+13 -10
View File
@@ -1,29 +1,32 @@
language: python language: python
sudo: required sudo: required
python:
- "2.7"
- "3.6"
matrix: matrix:
include: include:
- dist: trusty - dist: trusty
python: 2.7
env: dist="14.04 LTS trusty"
- dist: trusty
python: 3.6
env: dist="14.04 LTS trusty" env: dist="14.04 LTS trusty"
before_install: before_install:
- sudo apt-get update -qq - sudo apt-get update -qq
- sudo apt-get install -qq vlan - sudo apt-get install -qq vlan
- util/install.sh -n - PYTHON=`which python` util/install.sh -n
install: install:
- bash -c "if [ `lsb_release -rs` == '14.04' ]; then make codecheck; fi" - bash -c "if [ `lsb_release -rs` == '14.04' ]; then make codecheck; fi"
- sudo util/install.sh -fnvw - pip install pexpect || pip3 install pexpect
- util/install.sh -nfvw
script: script:
- echo "px import sys; print(sys.version_info)" | sudo mn -v output - alias sudo="sudo env PATH=$PATH"
- sudo mn --test pingall - export PYTHON=`which python`
- sudo python mininet/test/runner.py -v -quick - echo 'px import sys; print(sys.version_info)' | sudo $PYTHON bin/mn -v output
- sudo python examples/test/runner.py -v -quick - sudo $PYTHON bin/mn --test pingall
- sudo $PYTHON mininet/test/runner.py -v -quick
- sudo $PYTHON examples/test/runner.py -v -quick
notifications: notifications:
email: email: