install.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh
  2. #
  3. # dev-tools install
  4. #
  5. # installation script for dev-tools utilities
  6. #
  7. # script must be idempotent as to continue retrying in case of failure
  8. # (e.g. network timed out) when invoking again so that temporary i/o or
  9. # network problems can be dealt with by invoking the script again (and
  10. # again) until success. required for unattended build.
  11. #
  12. # usage: ./dev-tools/install.sh
  13. # or: travis_retry ./dev-tools/install.sh
  14. # or: ./install.sh
  15. # or: ./install.sh || ./install.sh || ./install.sh
  16. #
  17. set -eu
  18. cd "$(dirname "$0")"
  19. mkdir -p bin
  20. VERSION_CB="2.21.3"
  21. VERSION_SC="stable"
  22. echo λλλ checkbashisms
  23. if [ ! -x bin/checkbashisms ]; then
  24. wget -qO- "https://deb.debian.org/debian/pool/main/d/devscripts/devscripts_${VERSION_CB}.tar.xz" \
  25. | tar -xJv -O devscripts-${VERSION_CB}/scripts/checkbashisms.pl \
  26. > bin/checkbashisms
  27. chmod u+x bin/checkbashisms
  28. fi
  29. bin/checkbashisms --version
  30. echo λλλ shellcheck
  31. if [ ! -x bin/shellcheck ]; then
  32. wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${VERSION_SC}/shellcheck-${VERSION_SC}.linux.x86_64.tar.xz" \
  33. | tar -xJv -O shellcheck-${VERSION_SC}/shellcheck \
  34. > bin/shellcheck
  35. chmod u+x bin/shellcheck
  36. fi
  37. bin/shellcheck --version
  38. echo λλλ composer packages
  39. composer update -v
  40. composer info -D | sort