From 674ff77fc4f4d92356b2cb3698033710a5d50014 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 17 Feb 2019 22:45:07 +0800 Subject: [PATCH] cache deps --- azure-pipelines.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8726384c..3da5a22c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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')