cache deps
This commit is contained in:
parent
0d0d0453cc
commit
674ff77fc4
@ -26,6 +26,11 @@ jobs:
|
||||
php -version
|
||||
displayName: 'Use PHP version $(phpVersion)'
|
||||
|
||||
- task: DownloadPipelineArtifact@0
|
||||
inputs:
|
||||
artifactName: php vendor
|
||||
targetPath: vendor
|
||||
|
||||
- script: composer install --no-interaction --prefer-dist
|
||||
displayName: 'composer install'
|
||||
|
||||
@ -45,11 +50,20 @@ jobs:
|
||||
testRunner: JUnit
|
||||
testResultsFiles: './junit.xml'
|
||||
|
||||
- task: PublishPipelineArtifact@0
|
||||
inputs:
|
||||
artifactName: php vendor
|
||||
targetPath: vendor
|
||||
|
||||
- job: javascript
|
||||
displayName: JavaScript
|
||||
pool:
|
||||
vmImage: 'Ubuntu-16.04'
|
||||
steps:
|
||||
- task: DownloadPipelineArtifact@0
|
||||
inputs:
|
||||
artifactName: node_modules
|
||||
targetPath: node_modules
|
||||
|
||||
- script: yarn
|
||||
displayName: Install dependencies
|
||||
@ -65,6 +79,11 @@ jobs:
|
||||
testRunner: JUnit
|
||||
testResultsFiles: './junit.xml'
|
||||
|
||||
- task: PublishPipelineArtifact@0
|
||||
inputs:
|
||||
artifactName: node_modules
|
||||
targetPath: node_modules
|
||||
|
||||
- job: build
|
||||
displayName: Build & Compile
|
||||
condition: ne(variables['Build.Reason'], 'PullRequest')
|
||||
|
Loading…
Reference in New Issue
Block a user