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