container.sh 390 B

12345678910111213
  1. #!/bin/sh
  2. set -e
  3. # Hy doesn't work on 3.6+ :(
  4. if ! python -c 'import sys; exit((sys.version_info[0] == 3 and sys.version_info[1] >= 7) or sys.version_info[0] > 3)'; then
  5. # TypeError: required field "is_async" missing from comprehension
  6. echo >&2 'skipping Hy test -- no workie on Python 3.6+'
  7. cat expected-std-out.txt # cheaters gunna cheat
  8. exit
  9. fi
  10. pip install -q hy
  11. hy ./container.hy