Permalink
Browse files

Use appropriate python version

  • Loading branch information...
lantz committed Jul 26, 2018
1 parent c7deeae commit d96b35694ab257fffbe779830a42f012e524346f
Showing with 13 additions and 10 deletions.
  1. +13 −10 .travis.yml
View
@@ -1,29 +1,32 @@
language: python
sudo: required
python:
- "2.7"
- "3.6"
matrix:
include:
- dist: trusty
python: 2.7
env: dist="14.04 LTS trusty"
- dist: trusty
python: 3.6
env: dist="14.04 LTS trusty"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq vlan
- util/install.sh -n
- PYTHON=`which python` util/install.sh -n
install:
- 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:
- echo "px import sys; print(sys.version_info)" | sudo mn -v output
- sudo mn --test pingall
- sudo python mininet/test/runner.py -v -quick
- sudo python examples/test/runner.py -v -quick
- alias sudo="sudo env PATH=$PATH"
- export PYTHON=`which python`
- echo 'px import sys; print(sys.version_info)' | sudo $PYTHON bin/mn -v output
- sudo $PYTHON bin/mn --test pingall
- sudo $PYTHON mininet/test/runner.py -v -quick
- sudo $PYTHON examples/test/runner.py -v -quick
notifications:
email:

0 comments on commit d96b356

Please sign in to comment.