Skip to content

Instantly share code, notes, and snippets.

@gizmoguy
Created March 13, 2017 02:01
Show Gist options
  • Save gizmoguy/c910d103347b6d1f7b97b378fa52be49 to your computer and use it in GitHub Desktop.
Save gizmoguy/c910d103347b6d1f7b97b378fa52be49 to your computer and use it in GitHub Desktop.
Travis.yml for faucet
# Check with travis lint .travis.yml.
# TODO: we want this to be xenial, but travis doesn't support it yet.
# dist: xenial
language: python
python:
- "2.7"
before_install:
- "sudo -H apt-get install graphviz"
- "pip install influxdb"
install:
- "make sdist" # add explict target instead of doing all the unnecessary stuff
- "cwd=$(pwd) ; tarball=`echo $cwd/dist/ryu-faucet*tar.gz` ; pip install file:$tarball"
- "ls -al /etc/ryu/faucet"
- "python /usr/local/lib/python2.7/dist-packages/ryu_faucet/faucet/check_faucet_config.py /etc/ryu/faucet/faucet.yaml-dist"
# We want to run actual mininet based tests too. Prefer xenial
# but perhaps can run container-inside-container inside this container..
script:
- "pylint -E src/ryu_faucet/faucet/*.py"
- "cd ./tests ; ./test_config.py ; ./test_check_config.py ; ./test_valve.py"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment