Skip to content

Commit

Permalink
add ensure-autobahn.sh (dotnet#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
analogrelay authored Mar 26, 2017
1 parent fb525c9 commit 34b9054
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions BuildAgent/SetupScripts/Components/ensure-autobahn.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

set +e

if ! type -p python >/dev/null 2>&1; then
echo "Requires python!" 1>&2
exit 1
fi

python -m ensurepip
pip install virtualenv

mkdir -p ~/virtualenvs

if [ ! -d ~/virtualenvs/autobahntestsuite ]; then
virtualenv ~/virtualenvs/autobahntestsuite
fi

~/virtualenvs/autobahntestsuite/bin/pip install autobahntestsuite

if [ -e /usr/local/bin/wstest ]; then
rm /usr/local/bin/wstest
fi
ln -s ~/virtualenvs/autobahntestsuite/bin/wstest /usr/local/bin/wstest

0 comments on commit 34b9054

Please sign in to comment.