|
| 1 | +environment: |
| 2 | + host: |
| 3 | + os: 'windows' |
| 4 | + flavor: 'server' |
| 5 | + version: '2016' |
| 6 | + runtime: |
| 7 | + provider: 'appcontainer' |
| 8 | + image: 'cdpxwinrs5.azurecr.io/global/vse2019/16.3.7:latest' |
| 9 | + source_mode: 'map' |
| 10 | + |
| 11 | +artifact_publish_options: |
| 12 | + publish_to_legacy_artifacts: false |
| 13 | + publish_to_pipeline_artifacts: true |
| 14 | + publish_to_cloudvault_artifacts: false |
| 15 | + |
| 16 | +signing_options: |
| 17 | + profile: 'external_distribution' |
| 18 | + |
| 19 | +static_analysis_options: |
| 20 | + moderncop_options: |
| 21 | + files_to_scan: |
| 22 | + - from: 'src\' |
| 23 | + include: |
| 24 | + - '**/*.*' |
| 25 | + |
| 26 | + policheck_options: |
| 27 | + files_to_scan: |
| 28 | + - exclude: |
| 29 | + - 'demo\**\*' # Exclude path 'Localize'. |
| 30 | + - 'test\**\*' |
| 31 | + - 'node_modules\**\*' |
| 32 | + |
| 33 | + binskim_options: |
| 34 | + files_to_scan: |
| 35 | + - exclude: |
| 36 | + - 'demo\**\*' # Exclude path 'Localize'. |
| 37 | + - 'test\**\*' |
| 38 | + - 'node_modules\**\*' |
| 39 | + |
| 40 | +package_sources: |
| 41 | + npm: |
| 42 | + feeds: |
| 43 | + registry: https://powerbi.pkgs.visualstudio.com/_packaging/SDK.Externals/npm/registry/ |
| 44 | + |
| 45 | +version: |
| 46 | + major: 1 # <---- Required field but not being used for 'custom' scheme |
| 47 | + minor: 0 # <---- Required field but not being used for 'custom' scheme |
| 48 | + system: 'custom' # <---- Set this to 'custom'. we will build the version using package.json in versioning commands. |
| 49 | + |
| 50 | +versioning: |
| 51 | + commands: |
| 52 | + - !!defaultcommand |
| 53 | + name: 'Set Version' |
| 54 | + arguments: 'version.ps1' |
| 55 | + command: '.pipelines\cdpx_run_ps.cmd' |
| 56 | + |
| 57 | +restore: |
| 58 | + commands: |
| 59 | + - !!defaultcommand |
| 60 | + name: 'NPM Install' |
| 61 | + arguments: 'restore.ps1' |
| 62 | + command: '.pipelines\cdpx_run_ps.cmd' |
| 63 | + |
| 64 | +build: |
| 65 | + commands: |
| 66 | + - !!buildcommand |
| 67 | + name: 'Build' |
| 68 | + arguments: 'build.ps1' |
| 69 | + command: '.pipelines\cdpx_run_ps.cmd' |
| 70 | + artifacts: |
| 71 | + - from: 'dist' |
| 72 | + to: 'build_artifacts' |
| 73 | + include: |
| 74 | + - '**/*' |
| 75 | + exclude: |
| 76 | + - '**/node_modules/**/*.*' |
| 77 | + - to: 'source' |
| 78 | + include: |
| 79 | + - '**/*' |
| 80 | + exclude: |
| 81 | + - '**/.pipelines/**/*.*' |
| 82 | + - '**/.vscode/**/*.*' |
| 83 | + - '**/test/**/*.*' |
| 84 | + - '**/demo/**/*.*' |
| 85 | + - '**/dist/**/*.*' |
| 86 | + - '**/node_modules/**/*.*' |
| 87 | + |
| 88 | + - !!buildcommand |
| 89 | + name: 'Package' |
| 90 | + arguments: 'package.ps1' |
| 91 | + command: '.pipelines\cdpx_run_ps.cmd' |
| 92 | + artifacts: |
| 93 | + - include: |
| 94 | + - "**/*.tgz" |
| 95 | + |
| 96 | + - !!buildcommand |
| 97 | + name: 'Nuget Pack' |
| 98 | + arguments: 'nuget_pack.ps1' |
| 99 | + command: '.pipelines\cdpx_run_ps.cmd' |
| 100 | + artifacts: |
| 101 | + - to: 'Release' |
| 102 | + include: |
| 103 | + - "**/*.nupkg" |
| 104 | + |
| 105 | +test: |
| 106 | + commands: |
| 107 | + - !!testcommand |
| 108 | + name: 'Test powerbi-javascript' |
| 109 | + arguments: 'test.ps1' |
| 110 | + command: '.pipelines\cdpx_run_ps.cmd' |
| 111 | + testresults: |
| 112 | + - title: 'powerbi-javascript test results' |
| 113 | + type: 'jasmine' |
| 114 | + from: 'reports' |
| 115 | + include: |
| 116 | + - "**coverage/**/index.html" |
0 commit comments