|
1 | 1 | trigger: |
2 | | -- master |
3 | | -- dev |
| 2 | + - master |
| 3 | + - dev |
4 | 4 |
|
5 | 5 | pool: |
6 | 6 | vmImage: 'ubuntu-latest' |
7 | 7 |
|
8 | 8 | variables: |
9 | | - phpVersion: 7.3 |
| 9 | + phpVersion: 7.4 |
10 | 10 | COMPOSER_CACHE_DIR: $(Pipeline.Workspace)/.composer |
11 | 11 |
|
12 | 12 | steps: |
13 | | -- task: Cache@2 |
14 | | - inputs: |
15 | | - key: 'composer | "$(Agent.OS)" | composer.lock' |
16 | | - restoreKeys: | |
17 | | - composer | "$(Agent.OS)" |
18 | | - composer |
19 | | - path: $(COMPOSER_CACHE_DIR) |
20 | | - displayName: Cache composer |
| 13 | + - task: Cache@2 |
| 14 | + inputs: |
| 15 | + key: 'composer | "$(Agent.OS)" | composer.lock' |
| 16 | + restoreKeys: | |
| 17 | + composer | "$(Agent.OS)" |
| 18 | + composer |
| 19 | + path: $(COMPOSER_CACHE_DIR) |
| 20 | + displayName: Cache composer |
21 | 21 |
|
22 | 22 |
|
23 | | -- script: | |
24 | | - sudo update-alternatives --set php /usr/bin/php$(phpVersion) |
25 | | - sudo update-alternatives --set phar /usr/bin/phar$(phpVersion) |
26 | | - sudo update-alternatives --set phpdbg /usr/bin/phpdbg$(phpVersion) |
27 | | - sudo update-alternatives --set php-cgi /usr/bin/php-cgi$(phpVersion) |
28 | | - sudo update-alternatives --set phar.phar /usr/bin/phar.phar$(phpVersion) |
29 | | - php -version |
30 | | - displayName: 'Use PHP version $(phpVersion)' |
| 23 | + - script: | |
| 24 | + sudo update-alternatives --set php /usr/bin/php$(phpVersion) |
| 25 | + sudo update-alternatives --set phar /usr/bin/phar$(phpVersion) |
| 26 | + sudo update-alternatives --set phpdbg /usr/bin/phpdbg$(phpVersion) |
| 27 | + sudo update-alternatives --set php-cgi /usr/bin/php-cgi$(phpVersion) |
| 28 | + sudo update-alternatives --set phar.phar /usr/bin/phar.phar$(phpVersion) |
| 29 | + php -version |
| 30 | + displayName: 'Use PHP version $(phpVersion)' |
31 | 31 |
|
32 | | -- script: composer install --no-interaction --prefer-dist |
33 | | - displayName: 'Composer install' |
34 | | -- script: ./vendor/bin/phpunit |
35 | | - displayName: 'Testing' |
| 32 | + - script: composer install --no-interaction --prefer-dist |
| 33 | + displayName: 'Composer install' |
| 34 | + - script: ./vendor/bin/phpunit |
| 35 | + displayName: 'Testing' |
0 commit comments