From bac4befc1e308a0cded243f199280624d991ce21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=ABl=20Mugnier?= <46538060+noelmugnier@users.noreply.github.com> Date: Thu, 11 Mar 2021 09:57:33 +0100 Subject: [PATCH] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-dev.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 azure-pipelines-dev.yml diff --git a/azure-pipelines-dev.yml b/azure-pipelines-dev.yml new file mode 100644 index 0000000..878d1e9 --- /dev/null +++ b/azure-pipelines-dev.yml @@ -0,0 +1,32 @@ +# PHP +# Test and package your PHP project. +# Add steps that run tests, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/php + +trigger: + batch: true + +pool: + vmImage: 'ubuntu-latest' + +variables: + phpVersion: 7.2 + +steps: +- script: | + sudo update-alternatives --set php /usr/bin/php$(phpVersion) + sudo update-alternatives --set phar /usr/bin/phar$(phpVersion) + sudo update-alternatives --set phpdbg /usr/bin/phpdbg$(phpVersion) + sudo update-alternatives --set php-cgi /usr/bin/php-cgi$(phpVersion) + sudo update-alternatives --set phar.phar /usr/bin/phar.phar$(phpVersion) + php -version + displayName: 'Use PHP version $(phpVersion)' + +- script: composer install --no-interaction --prefer-dist + displayName: 'composer install' + +- task: ArchiveFiles@2 + inputs: + rootFolderOrFile: '$(system.defaultWorkingDirectory)' + includeRootFolder: false +- task: PublishBuildArtifacts@1