Merge pull request #710 from bocon13/travisci

Setting up .travis.yml for automated builds on Travis CI
This commit is contained in:
Brian O'Connor
2017-01-12 16:29:54 -08:00
committed by GitHub
5 changed files with 22 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
language: python
sudo: required
dist: trusty
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq vlan
install:
- sudo util/install.sh -fnvw
script:
- sudo mn --test pingall
- sudo python mininet/test/runner.py -v -quick
- sudo python examples/test/runner.py -v -quick
+1
View File
@@ -1,5 +1,6 @@
Mininet: Rapid Prototyping for Software Defined Networks
========================================================
[![Build Status](https://travis-ci.org/mininet/mininet.svg?branch=master)](https://travis-ci.org/mininet/mininet)
*The best way to emulate almost any network on your laptop!*
+2 -1
View File
@@ -32,7 +32,8 @@ def runTests( testDir, verbosity=1 ):
# discover all tests in testDir
testSuite = unittest.defaultTestLoader.discover( testDir )
# run tests
MininetTestRunner( verbosity=verbosity ).run( testSuite )
success = MininetTestRunner( verbosity=verbosity ).run( testSuite ).wasSuccessful()
sys.exit( 0 if success else 1 )
if __name__ == '__main__':
# get the directory containing example tests
+2 -2
View File
@@ -57,8 +57,8 @@ class testHwintf( unittest.TestCase ):
p.wait()
def tearDown( self ):
self.h3.terminate()
self.n0.terminate()
self.h3.stop( deleteIntfs=True )
self.n0.stop( deleteIntfs=True )
if __name__ == '__main__':
setLogLevel( 'warning' )
+2 -1
View File
@@ -21,7 +21,8 @@ def runTests( testDir, verbosity=1 ):
# discover all tests in testDir
testSuite = defaultTestLoader.discover( testDir )
# run tests
TextTestRunner( verbosity=verbosity ).run( testSuite )
success = TextTestRunner( verbosity=verbosity ).run( testSuite ).wasSuccessful()
sys.exit( 0 if success else 1 )
if __name__ == '__main__':
setLogLevel( 'warning' )