Skip to content

Commit

Permalink
Run autobahn on PRs, check for autobahn regression
Browse files Browse the repository at this point in the history
This will run autobahn tests on every travis build and it will also
check if the results have gotten worse through the use of the results
JSON file in autobahn/
  • Loading branch information
illegalprime authored and Michael Eden committed Apr 3, 2017
1 parent 8ee9f02 commit 0b3bb40
Show file tree
Hide file tree
Showing 6 changed files with 7,350 additions and 19 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@ Icon
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
Temporary Items

# Autobahn Output
autobahn/client
autobahn/server

22 changes: 4 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,10 @@ script:
- cargo bench --features nightly

after_success:
- >
[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ] && sudo pip install ghp-import urllib3[secure]
- >
[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ] && sudo apt-get install python-unittest2 && sudo pip install autobahntestsuite
- >
[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ] && {
echo "Running Autobahn TestSuite for client" ;
wstest -m fuzzingserver -s ./autobahn/fuzzingserver.json & FUZZINGSERVER_PID=$! ;
sleep 10 ;
./target/debug/examples/autobahn-client ;
kill -9 ${FUZZINGSERVER_PID} ; }
- >
[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ] && {
echo "Running Autobahn TestSuite for server" ;
./target/debug/examples/autobahn-server & WSSERVER_PID=$! ;
sleep 10 ;
wstest -m fuzzingclient -s ./autobahn/fuzzingclient.json ;
kill -9 ${WSSERVER_PID} ; }
- sudo apt-get install python-unittest2
- sudo pip install ghp-import urllib3[secure] autobahntestsuite
- echo "Running Autobahn TestSuite for client" && ./scripts/autobahn-client.sh
- echo "Running Autobahn TestSuite for server" && ./scripts/autobahn-server.sh
- >
[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ] && {
echo "Building docs and gh-pages" ;
Expand Down
Loading

0 comments on commit 0b3bb40

Please sign in to comment.