mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
@@ -1,14 +1,5 @@
|
|||||||
steps:
|
steps:
|
||||||
- task: NodeTool@0
|
- script: |
|
||||||
inputs:
|
|
||||||
versionSpec: '10.15.1'
|
|
||||||
displayName: 'Install Node.js'
|
|
||||||
|
|
||||||
- script: |
|
|
||||||
npm i -g yarn
|
|
||||||
displayName: 'preinstall'
|
|
||||||
|
|
||||||
- script: |
|
|
||||||
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:10
|
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:10
|
||||||
sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
|
sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
|
||||||
sudo chmod +x /etc/init.d/xvfb
|
sudo chmod +x /etc/init.d/xvfb
|
||||||
@@ -17,51 +8,73 @@ steps:
|
|||||||
sudo apt-get install -y libkrb5-dev
|
sudo apt-get install -y libkrb5-dev
|
||||||
# sh -e /etc/init.d/xvfb start
|
# sh -e /etc/init.d/xvfb start
|
||||||
# sleep 3
|
# sleep 3
|
||||||
displayName: 'Linux preinstall'
|
displayName: "Linux preinstall"
|
||||||
condition: eq(variables['Agent.OS'], 'Linux')
|
condition: eq(variables['Agent.OS'], 'Linux')
|
||||||
|
|
||||||
- script: |
|
- task: NodeTool@0
|
||||||
yarn
|
inputs:
|
||||||
displayName: 'Install'
|
versionSpec: "10.15.1"
|
||||||
|
|
||||||
- script: |
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
||||||
|
inputs:
|
||||||
|
keyfile: ".yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock"
|
||||||
|
targetfolder: "**/node_modules, !**/node_modules/**/node_modules"
|
||||||
|
vstsFeed: "$(build-cache)"
|
||||||
|
|
||||||
|
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@3
|
||||||
|
inputs:
|
||||||
|
versionSpec: "1.10.1"
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn --frozen-lockfile
|
||||||
|
displayName: Install Dependencies
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
|
||||||
|
inputs:
|
||||||
|
keyfile: ".yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock"
|
||||||
|
targetfolder: "**/node_modules, !**/node_modules/**/node_modules"
|
||||||
|
vstsFeed: "$(build-cache)"
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
yarn gulp electron-x64
|
yarn gulp electron-x64
|
||||||
displayName: Download Electron
|
displayName: Download Electron
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
yarn gulp hygiene
|
yarn gulp hygiene
|
||||||
displayName: Run Hygiene Checks
|
displayName: Run Hygiene Checks
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
yarn tslint
|
yarn tslint
|
||||||
displayName: 'Run TSLint'
|
displayName: "Run TSLint"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
yarn strict-null-check
|
yarn strict-null-check
|
||||||
displayName: 'Run Strict Null Check'
|
displayName: "Run Strict Null Check"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
yarn compile
|
yarn compile
|
||||||
displayName: 'Compile'
|
displayName: "Compile"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
DISPLAY=:10 ./scripts/test.sh --reporter mocha-junit-reporter
|
DISPLAY=:10 ./scripts/test.sh --reporter mocha-junit-reporter
|
||||||
displayName: 'Tests'
|
displayName: "Tests"
|
||||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
DISPLAY=:10 ./scripts/test.sh --reporter mocha-junit-reporter --coverage
|
DISPLAY=:10 ./scripts/test.sh --reporter mocha-junit-reporter --coverage
|
||||||
displayName: 'Tests'
|
displayName: "Tests"
|
||||||
condition: and(succeeded(), ne(variables['Agent.OS'], 'Linux'))
|
condition: and(succeeded(), ne(variables['Agent.OS'], 'Linux'))
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
inputs:
|
inputs:
|
||||||
testResultsFiles: '**/test-results.xml'
|
testResultsFiles: "**/test-results.xml"
|
||||||
condition: succeededOrFailed()
|
condition: succeededOrFailed()
|
||||||
|
|
||||||
- task: PublishCodeCoverageResults@1
|
- task: PublishCodeCoverageResults@1
|
||||||
inputs:
|
inputs:
|
||||||
codeCoverageTool: 'cobertura'
|
codeCoverageTool: "cobertura"
|
||||||
summaryFileLocation: $(System.DefaultWorkingDirectory)/.build/coverage/cobertura-coverage.xml
|
summaryFileLocation: $(System.DefaultWorkingDirectory)/.build/coverage/cobertura-coverage.xml
|
||||||
reportDirectory: $(System.DefaultWorkingDirectory)/.build/coverage/lcov-reports
|
reportDirectory: $(System.DefaultWorkingDirectory)/.build/coverage/lcov-reports
|
||||||
condition: ne(variables['Agent.OS'], 'Linux')
|
condition: ne(variables['Agent.OS'], 'Linux')
|
||||||
|
|||||||
@@ -1,44 +1,61 @@
|
|||||||
steps:
|
steps:
|
||||||
- task: NodeTool@0
|
- task: NodeTool@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '10.15.1'
|
versionSpec: "10.15.1"
|
||||||
displayName: 'Install Node.js'
|
|
||||||
|
|
||||||
- script: |
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
||||||
yarn
|
inputs:
|
||||||
displayName: 'Yarn Install'
|
keyfile: ".yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock"
|
||||||
|
targetfolder: "**/node_modules, !**/node_modules/**/node_modules"
|
||||||
|
vstsFeed: "$(build-cache)"
|
||||||
|
|
||||||
- script: |
|
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@3
|
||||||
|
inputs:
|
||||||
|
versionSpec: "1.10.1"
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn --frozen-lockfile
|
||||||
|
displayName: Install Dependencies
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
|
||||||
|
inputs:
|
||||||
|
keyfile: ".yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock"
|
||||||
|
targetfolder: "**/node_modules, !**/node_modules/**/node_modules"
|
||||||
|
vstsFeed: "$(build-cache)"
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
yarn gulp electron-x64
|
yarn gulp electron-x64
|
||||||
displayName: 'Electron'
|
displayName: "Electron"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
yarn gulp hygiene
|
yarn gulp hygiene
|
||||||
displayName: Run Hygiene Checks
|
displayName: Run Hygiene Checks
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
yarn tslint
|
yarn tslint
|
||||||
displayName: 'Run TSLint'
|
displayName: "Run TSLint"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
yarn strict-null-check
|
yarn strict-null-check
|
||||||
displayName: 'Run Strict Null Check'
|
displayName: "Run Strict Null Check"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
yarn compile
|
yarn compile
|
||||||
displayName: 'Compile'
|
displayName: "Compile"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
.\scripts\test.bat --reporter mocha-junit-reporter --coverage
|
.\scripts\test.bat --reporter mocha-junit-reporter --coverage
|
||||||
displayName: 'Test'
|
displayName: "Test"
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
inputs:
|
inputs:
|
||||||
testResultsFiles: 'test-results.xml'
|
testResultsFiles: "test-results.xml"
|
||||||
condition: succeededOrFailed()
|
condition: succeededOrFailed()
|
||||||
|
|
||||||
- task: PublishCodeCoverageResults@1
|
- task: PublishCodeCoverageResults@1
|
||||||
inputs:
|
inputs:
|
||||||
codeCoverageTool: 'cobertura'
|
codeCoverageTool: "cobertura"
|
||||||
summaryFileLocation: $(System.DefaultWorkingDirectory)\.build\coverage\cobertura-coverage.xml
|
summaryFileLocation: $(System.DefaultWorkingDirectory)\.build\coverage\cobertura-coverage.xml
|
||||||
reportDirectory: $(System.DefaultWorkingDirectory)\.build\coverage\lcov-report
|
reportDirectory: $(System.DefaultWorkingDirectory)\.build\coverage\lcov-report
|
||||||
|
|||||||
@@ -1,29 +1,22 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- master
|
- master
|
||||||
- releases/*
|
- release/*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
- job: Windows
|
||||||
# All tasks on Windows
|
|
||||||
- job: build_all_windows
|
|
||||||
displayName: Build all tasks (Windows)
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: vs2017-win2016
|
vmImage: VS2017-Win2016
|
||||||
steps:
|
steps:
|
||||||
- template: azure-pipelines-windows.yml
|
- template: azure-pipelines-windows.yml
|
||||||
|
|
||||||
# All tasks on Linux
|
- job: Linux
|
||||||
- job: build_all_linux
|
|
||||||
displayName: Build all tasks (Linux)
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'Ubuntu 16.04'
|
vmImage: "Ubuntu-16.04"
|
||||||
steps:
|
steps:
|
||||||
- template: azure-pipelines-linux-mac.yml
|
- template: azure-pipelines-linux-mac.yml
|
||||||
|
|
||||||
# All tasks on macOS
|
- job: macOS
|
||||||
- job: build_all_darwin
|
|
||||||
displayName: Build all tasks (macOS)
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: macos-10.13
|
vmImage: macOS 10.13
|
||||||
steps:
|
steps:
|
||||||
- template: azure-pipelines-linux-mac.yml
|
- template: azure-pipelines-linux-mac.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user