2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
2023-11-22 21:49:23 +01:00
|
|
|
## File: install-hhvm.sh
|
|
|
|
|
## Desc: Install HHVM
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
|
2023-12-29 18:11:55 +01:00
|
|
|
REPO_URL="https://dl.hhvm.com/ubuntu"
|
|
|
|
|
GPG_KEY="/usr/share/keyrings/hhvm.gpg"
|
|
|
|
|
REPO_PATH="/etc/apt/sources.list.d/hhvm.list"
|
2023-12-29 12:36:27 +01:00
|
|
|
|
2023-12-29 18:11:55 +01:00
|
|
|
# add HHVM repository to apt
|
|
|
|
|
curl -fsSL https://dl.hhvm.com/conf/hhvm.gpg.key | gpg --dearmor -o $GPG_KEY
|
|
|
|
|
echo "deb [signed-by=$GPG_KEY] $REPO_URL $(lsb_release -cs) main" > $REPO_PATH
|
|
|
|
|
|
|
|
|
|
# install HHVM
|
2020-12-25 18:03:35 +03:00
|
|
|
apt-get update
|
|
|
|
|
apt-get -qq install -y hhvm
|
2019-12-13 09:48:00 -05:00
|
|
|
|
2023-12-29 18:11:55 +01:00
|
|
|
# remove HHVM's apt repository
|
|
|
|
|
rm $REPO_PATH
|
|
|
|
|
rm $GPG_KEY
|
|
|
|
|
|
2020-12-25 18:03:35 +03:00
|
|
|
invoke_tests "Tools" "HHVM"
|