[ubuntu] Remove apt-key from build scripts (#9082)
This commit is contained in:
@@ -4,10 +4,20 @@
|
||||
## Desc: Install HHVM
|
||||
################################################################################
|
||||
|
||||
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xB4112585D386EB94
|
||||
add-apt-repository https://dl.hhvm.com/ubuntu
|
||||
REPO_URL="https://dl.hhvm.com/ubuntu"
|
||||
GPG_KEY="/usr/share/keyrings/hhvm.gpg"
|
||||
REPO_PATH="/etc/apt/sources.list.d/hhvm.list"
|
||||
|
||||
# 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
|
||||
apt-get update
|
||||
apt-get -qq install -y hhvm
|
||||
|
||||
# remove HHVM's apt repository
|
||||
rm $REPO_PATH
|
||||
rm $GPG_KEY
|
||||
|
||||
invoke_tests "Tools" "HHVM"
|
||||
|
||||
Reference in New Issue
Block a user