Plex plugin to to play various online streams (mostly Latvian).

pre-applypatch 948B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. #
  3. # An example hook script to verify what is about to be committed
  4. # by applypatch from an e-mail message.
  5. #
  6. # The hook should exit with non-zero status after issuing an
  7. # appropriate message if it wants to stop the commit.
  8. #
  9. # To enable this hook, rename this file to "pre-applypatch".
  10. set -eu
  11. #. git-sh-setup
  12. echo "** in hook **"
  13. function test_version {
  14. version=$1
  15. host=$(ls ~/.virtualenvs/mock-$version-* -d | sed -e "s/^.*mock-$version-//")
  16. if [ -z "$host" ]; then
  17. echo "No host found for $version"
  18. return 1
  19. fi
  20. echo testing $version in virtualenv mock-$version-$host on ssh host $host
  21. ssh $host "cd work/mock && . ~/.virtualenvs/mock-$version-$host/bin/activate && pip install .[test] && unit2"
  22. }
  23. find . -name "*.pyc" -exec rm "{}" \;
  24. test_version 2.6
  25. test_version 2.7
  26. test_version 3.3
  27. test_version 3.4
  28. test_version 3.5
  29. test_version cpython
  30. test_version pypy
  31. echo '** pre-apply complete and successful **'