Adopt generic pipeline template
This commit is contained in:
Родитель
29ac8186cb
Коммит
757da5be17
|
@ -1,13 +1,33 @@
|
|||
schedules:
|
||||
- cron: "0 0 * * *"
|
||||
displayName: Daily midnight build
|
||||
name: $(Date:yyyyMMdd)$(Rev:.r)
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- master
|
||||
- main
|
||||
tags:
|
||||
include: ["*"]
|
||||
pr: none
|
||||
|
||||
steps:
|
||||
- script: |
|
||||
set -e
|
||||
docker-compose -f .devcontainer/docker-compose.test.yml build --no-cache --pull
|
||||
docker-compose -f .devcontainer/docker-compose.test.yml run vscode-azurecli-test
|
||||
displayName: Run Tests
|
||||
resources:
|
||||
repositories:
|
||||
- repository: templates
|
||||
type: github
|
||||
name: microsoft/vscode-engineering
|
||||
ref: main
|
||||
endpoint: Monaco
|
||||
|
||||
extends:
|
||||
template: azure-pipelines/extension/stable.yml@templates
|
||||
parameters:
|
||||
buildSteps:
|
||||
- script: npm install -ci
|
||||
displayName: Install dependencies
|
||||
|
||||
- script: npm run compile
|
||||
displayName: Compile extension
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
docker-compose -f .devcontainer/docker-compose.test.yml build --no-cache --pull
|
||||
docker-compose -f .devcontainer/docker-compose.test.yml run vscode-azurecli-test
|
||||
displayName: Test extension
|
||||
|
|
|
@ -137,7 +137,6 @@
|
|||
}
|
||||
},
|
||||
"scripts": {
|
||||
"vscode:prepublish": "npm run compile",
|
||||
"compile": "tsc -p ./",
|
||||
"watch": "tsc -watch -p ./"
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче