Created
March 13, 2017 02:01
-
-
Save gizmoguy/c910d103347b6d1f7b97b378fa52be49 to your computer and use it in GitHub Desktop.
Travis.yml for faucet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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