diff --git a/.travis.yml b/.travis.yml index 4e06b91c542..07f6f241904 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ os: linux dist: focal -language: php +language: generic git: depth: 1 @@ -21,10 +21,10 @@ services: addons: # Force postgresql version postgresql: '10' - #apt: - #sources: - #- sourceline: 'ppa:ondrej/php' - #update: true + apt: + sources: + - sourceline: 'ppa:ondrej/php' + update: true #packages: # We need a webserver to test the webservices # Let's install Apache with. @@ -70,14 +70,16 @@ notifications: use_notice: true -install: +before_install: - | echo "Add ondrej PPA" sudo add-apt-repository -y ppa:ondrej/php sudo apt-get update sudo apt-get install -y pgloader memcached sudo apt install apache2 php8.1 php8.1-cli php8.1-mysql php8.1-pgsql php8.1-gd php8.1-imap php8.1-intl php8.1-ldap php8.1-xml php8.1-mbstring php8.1-xml php8.1-zip libapache2-mod-php8.1 + sudo update-alternatives --set php /usr/bin/php8.1 +install: - | php -i | head -