fix caching deps
This commit is contained in:
parent
0ba95365cf
commit
7826cb1914
@ -15,7 +15,6 @@ jobs:
|
|||||||
DB_DATABASE: test
|
DB_DATABASE: test
|
||||||
DB_USERNAME: root
|
DB_USERNAME: root
|
||||||
DB_PASSWORD: root
|
DB_PASSWORD: root
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
sudo update-alternatives --set php /usr/bin/php$(phpVersion)
|
sudo update-alternatives --set php /usr/bin/php$(phpVersion)
|
||||||
@ -29,7 +28,7 @@ jobs:
|
|||||||
- task: DownloadPipelineArtifact@0
|
- task: DownloadPipelineArtifact@0
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: php vendor
|
artifactName: php-vendor-$(phpVersion)
|
||||||
targetPath: vendor
|
targetPath: vendor
|
||||||
|
|
||||||
- script: composer install --no-interaction --prefer-dist
|
- script: composer install --no-interaction --prefer-dist
|
||||||
@ -52,8 +51,9 @@ jobs:
|
|||||||
testResultsFiles: './junit.xml'
|
testResultsFiles: './junit.xml'
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@0
|
- task: PublishPipelineArtifact@0
|
||||||
|
continueOnError: true
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: php vendor
|
artifactName: php-vendor-$(phpVersion)
|
||||||
targetPath: vendor
|
targetPath: vendor
|
||||||
|
|
||||||
- job: javascript
|
- job: javascript
|
||||||
@ -61,12 +61,6 @@ jobs:
|
|||||||
pool:
|
pool:
|
||||||
vmImage: 'Ubuntu-16.04'
|
vmImage: 'Ubuntu-16.04'
|
||||||
steps:
|
steps:
|
||||||
- task: DownloadPipelineArtifact@0
|
|
||||||
continueOnError: true
|
|
||||||
inputs:
|
|
||||||
artifactName: node_modules
|
|
||||||
targetPath: node_modules
|
|
||||||
|
|
||||||
- script: yarn
|
- script: yarn
|
||||||
displayName: Install dependencies
|
displayName: Install dependencies
|
||||||
|
|
||||||
@ -81,14 +75,9 @@ jobs:
|
|||||||
testRunner: JUnit
|
testRunner: JUnit
|
||||||
testResultsFiles: './junit.xml'
|
testResultsFiles: './junit.xml'
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@0
|
|
||||||
inputs:
|
|
||||||
artifactName: node_modules
|
|
||||||
targetPath: node_modules
|
|
||||||
|
|
||||||
- job: build
|
- job: build
|
||||||
displayName: Build & Compile
|
displayName: Build & Compile
|
||||||
condition: ne(variables['Build.Reason'], 'PullRequest')
|
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- php
|
- php
|
||||||
- javascript
|
- javascript
|
||||||
|
Loading…
Reference in New Issue
Block a user