-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ steps: | |
|
||
- task: Cache@2 | ||
inputs: | ||
key: 'npm-cache-analytics | $(Build.SourcesDirectory)/Temp/package.json' | ||
key: "npm-cache-analytics | $(Build.SourcesDirectory)/Temp/package.json" | ||
path: $(Build.SourcesDirectory)/survey-analytics/node_modules | ||
cacheHitVar: NPM_CACHE_RESTORED | ||
displayName: Cache NPM | ||
|
@@ -53,13 +53,13 @@ steps: | |
$env:GIT_REDIRECT_STDERR = '2>&1' | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "dmitrykurmanov" | ||
displayName: 'set up Git config' | ||
displayName: "set up Git config" | ||
- task: Npm@1 | ||
displayName: 'NPM install' | ||
displayName: "NPM install" | ||
inputs: | ||
command: custom | ||
customCommand: install --legacy-peer-deps | ||
customCommand: install --legacy-peer-deps | ||
verbose: false | ||
workingDir: $(Build.SourcesDirectory)/survey-analytics | ||
condition: ne(variables.NPM_CACHE_RESTORED, 'true') | ||
|
@@ -71,54 +71,54 @@ steps: | |
- task: DownloadBuildArtifacts@0 | ||
inputs: | ||
buildType: 'specific' | ||
project: 'af2804d2-859a-4705-9ef5-cdf46d1d5d4f' | ||
pipeline: '56' | ||
buildType: "specific" | ||
project: "af2804d2-859a-4705-9ef5-cdf46d1d5d4f" | ||
pipeline: "56" | ||
specificBuildWithTriggering: true | ||
buildVersionToDownload: 'latest' | ||
downloadType: 'single' | ||
artifactName: 'SurveyJSLibraryBuildCoreAngularJquery' | ||
downloadPath: '$(System.ArtifactsDirectory)' | ||
buildVersionToDownload: "latest" | ||
downloadType: "single" | ||
artifactName: "SurveyJSLibraryBuildCore" | ||
downloadPath: "$(System.ArtifactsDirectory)" | ||
|
||
- task: CopyFiles@2 | ||
inputs: | ||
SourceFolder: "$(System.ArtifactsDirectory)/SurveyJSLibraryBuildCoreAngularJquery/packages/survey-core" | ||
SourceFolder: "$(System.ArtifactsDirectory)/SurveyJSLibraryBuildCore/packages/survey-core" | ||
Contents: "**" | ||
TargetFolder: "$(Build.SourcesDirectory)/survey-analytics/node_modules/survey-core" | ||
OverWrite: true | ||
|
||
# npm run release with version | ||
- task: CopyFiles@2 | ||
inputs: | ||
SourceFolder: '$(System.ArtifactsDirectory)/SurveyJSLibraryBuildCoreAngularJquery/' | ||
Contents: 'version.txt' | ||
TargetFolder: '$(Build.SourcesDirectory)/' | ||
SourceFolder: "$(System.ArtifactsDirectory)/SurveyJSLibraryBuildCore/" | ||
Contents: "version.txt" | ||
TargetFolder: "$(Build.SourcesDirectory)/" | ||
OverWrite: true | ||
displayName: 'Copy Build Artifact - SurveyJSVersion File' | ||
displayName: "Copy Build Artifact - SurveyJSVersion File" | ||
|
||
- powershell: | | ||
$version = Get-Content $(Build.SourcesDirectory)/version.txt | ||
Write-Host "##vso[task.setvariable variable=SurveyJSVersion;]$version" | ||
displayName: 'setup SurveyJSVersion variable from SurveyJSVersionFile' | ||
displayName: "setup SurveyJSVersion variable from SurveyJSVersionFile" | ||
- powershell: | | ||
cd $(Build.SourcesDirectory)/survey-analytics | ||
npm run release -- --release-as $(SurveyJSVersion) | ||
displayName: 'npm run release specific version' | ||
##################################################### | ||
displayName: "npm run release specific version" | ||
##################################################### | ||
|
||
- script: | | ||
cd $(Build.SourcesDirectory)/survey-analytics | ||
npm run build:prod | ||
displayName: "npm build" | ||
- script: | | ||
cd $(Build.SourcesDirectory)/survey-analytics | ||
npm run build:types:summary | ||
npm run build:types:datatables | ||
npm run build:types:tabulator | ||
displayName: "npm build typings" | ||
- script: | | ||
cd $(Build.SourcesDirectory)/survey-analytics | ||
npm test | ||
|
@@ -133,27 +133,27 @@ steps: | |
TESTCAFE_DASHBOARD_URL: $(TESTCAFE_DASHBOARD_URL) | ||
- task: PublishCodeCoverageResults@1 | ||
inputs: | ||
inputs: | ||
codeCoverageTool: Cobertura # or JaCoCo | ||
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/*coverage.xml' | ||
reportDirectory: '$(System.DefaultWorkingDirectory)/**/coverage' | ||
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/*coverage.xml" | ||
reportDirectory: "$(System.DefaultWorkingDirectory)/**/coverage" | ||
|
||
- script: | | ||
cd $(Build.SourcesDirectory)/survey-analytics | ||
npm run doc_gen | ||
displayName: 'generate docs' | ||
displayName: "generate docs" | ||
- task: CopyFiles@2 | ||
inputs: | ||
SourceFolder: '$(Build.SourcesDirectory)/survey-analytics/docs' | ||
SourceFolder: "$(Build.SourcesDirectory)/survey-analytics/docs" | ||
Contents: | | ||
classes.json | ||
pmes.json | ||
surveyjs_definition.json | ||
TargetFolder: '$(Build.SourcesDirectory)/service/surveyjs.io/App_Data/DocsAnalytics' | ||
TargetFolder: "$(Build.SourcesDirectory)/service/surveyjs.io/App_Data/DocsAnalytics" | ||
OverWrite: true | ||
CleanTargetFolder: false | ||
displayName: 'copy generated docs to the local surveyjs/service repo' | ||
displayName: "copy generated docs to the local surveyjs/service repo" | ||
|
||
# read about the problem with git output ($env:GIT_REDIRECT_STDERR = '2>&1') : | ||
# https://github.com/microsoft/azure-pipelines-yaml/issues/248 | ||
|
@@ -167,15 +167,15 @@ steps: | |
git commit -m "updated survey-analytics docs" | ||
git pull origin master | ||
git push origin master | ||
displayName: 'git surveyjs/service push updated docs' | ||
displayName: "git surveyjs/service push updated docs" | ||
- task: CopyFiles@2 | ||
inputs: | ||
SourceFolder: '$(Build.SourcesDirectory)/survey-analytics/packages' | ||
SourceFolder: "$(Build.SourcesDirectory)/survey-analytics/packages" | ||
targetFolder: $(Build.ArtifactStagingDirectory)/SurveyJSAnalyticsBuild/packages/survey-analytics | ||
|
||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/SurveyJSAnalyticsBuild/' | ||
ArtifactName: 'SurveyJSAnalyticsBuild' | ||
publishLocation: 'Container' | ||
PathtoPublish: "$(Build.ArtifactStagingDirectory)/SurveyJSAnalyticsBuild/" | ||
ArtifactName: "SurveyJSAnalyticsBuild" | ||
publishLocation: "Container" |