mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-06 09:15:49 -05:00
1ca3ebccd6
- Remove build-time dependencies - Remove cached NPM packages - Remove cached PyPi packages - Remove dependency descriptors. These still count against the total space, although it's a few KBs - Install rust-clippy and rust-fmt using the OS package manager instead of maintaining our own installation script - Add tests for build time dependencies that are not supposed to be installed
22 lines
726 B
Bash
Executable file
22 lines
726 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
apk add --no-cache --virtual .php-build-deps \
|
|
gnupg
|
|
|
|
# Install phive
|
|
curl --retry 5 --retry-delay 5 -sLO https://phar.io/releases/phive.phar
|
|
curl --retry 5 --retry-delay 5 -sLO https://phar.io/releases/phive.phar.asc
|
|
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys "0x9D8A98B29B2D5D79"
|
|
gpg --verify phive.phar.asc phive.phar
|
|
chmod +x phive.phar
|
|
mv phive.phar /usr/local/bin/phive
|
|
rm phive.phar.asc
|
|
|
|
# Install the PHARs listed in phive.xml
|
|
phive --no-progress install \
|
|
--trust-gpg-keys 31C7E470E2138192,CF1A108D0E7AE720,8A03EA3B385DBAA1,12CE0F1D262429A5,5E6DDE998AB73B8E,51C67305FFC2E5C0,CBB3D576F2A0946F \
|
|
--target /usr/bin
|
|
|
|
apk del --no-network --purge .php-build-deps
|