Skip to content

Commit 38909e7

Browse files
committed
ci: add azure pipeline
[skip ci]
1 parent 2da6bf4 commit 38909e7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

azure-pipelines.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# https://docs.microsoft.com/azure/devops/pipelines/ecosystems/php
2+
pool:
3+
vmImage: 'ubuntu-latest'
4+
5+
variables:
6+
phpVersion: 7.1
7+
8+
steps:
9+
- script: |
10+
sudo update-alternatives --set php /usr/bin/php$(phpVersion)
11+
sudo update-alternatives --set phar /usr/bin/phar$(phpVersion)
12+
sudo update-alternatives --set phpdbg /usr/bin/phpdbg$(phpVersion)
13+
sudo update-alternatives --set php-cgi /usr/bin/php-cgi$(phpVersion)
14+
sudo update-alternatives --set phar.phar /usr/bin/phar.phar$(phpVersion)
15+
php -version
16+
displayName: 'Use PHP version $(phpVersion)'
17+
- script: composer install --no-interaction --prefer-dist
18+
displayName: 'composer install'
19+
- script: composer test
20+
displayName: 'Run tests'

0 commit comments

Comments
 (0)