提交 674d8a54 编写于 作者: J Joao Moreno

postinstall scripts all around

上级 b816ed5b
......@@ -53,6 +53,15 @@ steps:
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'npm-vscode'
- script: |
set -e
yarn postinstall
(cd build && yarn postinstall)
(cd extensions && yarn postinstall)
(cd test/smoke && yarn postinstall)
displayName: Run postinstall scripts
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
- script: |
set -e
yarn gulp mixin
......
......@@ -62,6 +62,14 @@ steps:
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'npm-vscode'
- script: |
set -e
yarn postinstall
(cd build && yarn postinstall)
(cd extensions && yarn postinstall)
displayName: Run postinstall scripts
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
- script: |
set -e
yarn gulp mixin
......
......@@ -62,6 +62,14 @@ steps:
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'npm-vscode'
- script: |
set -e
yarn postinstall
(cd build && yarn postinstall)
(cd extensions && yarn postinstall)
displayName: Run postinstall scripts
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
- script: |
set -e
yarn gulp mixin
......
......@@ -50,6 +50,6 @@ steps:
(cd $SNAP_ROOT/code-* && sudo --preserve-env snapcraft snap --output "$SNAP_PATH")
# Publish snap package
AZURE_DOCUMENTDB_MASTERKEY="$(builds-docdb-key-readwrite)" \
AZURE_STORAGE_ACCESS_KEY_2="$(vscode-storage-key)" \
node build/azure-pipelines/common/publish.js "$VSCODE_QUALITY" "linux-snap-$ARCH" package "$SNAP_FILENAME" "$VERSION" true "$SNAP_PATH"
\ No newline at end of file
# AZURE_DOCUMENTDB_MASTERKEY="$(builds-docdb-key-readwrite)" \
# AZURE_STORAGE_ACCESS_KEY_2="$(vscode-storage-key)" \
# node build/azure-pipelines/common/publish.js "$VSCODE_QUALITY" "linux-snap-$ARCH" package "$SNAP_FILENAME" "$VERSION" true "$SNAP_PATH"
\ No newline at end of file
......@@ -13,25 +13,25 @@ jobs:
# steps:
# - template: compile.yml
# - job: Windows
# condition: and(succeeded(), eq(variables['VSCODE_BUILD_WIN32'], 'true'))
# timeoutInMinutes: 120
# pool:
# vmImage: VS2017-Win2016
# variables:
# VSCODE_ARCH: x64
# steps:
# - template: win32/product-build-win32.yml
- job: Windows
condition: and(succeeded(), eq(variables['VSCODE_BUILD_WIN32'], 'true'))
timeoutInMinutes: 120
pool:
vmImage: VS2017-Win2016
variables:
VSCODE_ARCH: x64
steps:
- template: win32/product-build-win32.yml
# - job: Windows32
# condition: and(succeeded(), eq(variables['VSCODE_BUILD_WIN32_32BIT'], 'true'))
# timeoutInMinutes: 120
# pool:
# vmImage: VS2017-Win2016
# variables:
# VSCODE_ARCH: ia32
# steps:
# - template: win32/product-build-win32.yml
- job: Windows32
condition: and(succeeded(), eq(variables['VSCODE_BUILD_WIN32_32BIT'], 'true'))
timeoutInMinutes: 120
pool:
vmImage: VS2017-Win2016
variables:
VSCODE_ARCH: ia32
steps:
- template: win32/product-build-win32.yml
- job: Linux
condition: and(succeeded(), eq(variables['VSCODE_BUILD_LINUX'], 'true'))
......@@ -44,75 +44,75 @@ jobs:
steps:
- template: linux/product-build-linux.yml
# - job: LinuxSnap
# condition: and(succeeded(), eq(variables['VSCODE_BUILD_LINUX'], 'true'))
# timeoutInMinutes: 120
# pool:
# vmImage: 'Ubuntu-16.04'
# variables:
# VSCODE_ARCH: x64
# container: snapcraft
# dependsOn: Linux
# steps:
# - template: linux/snap-build-linux.yml
- job: LinuxSnap
condition: and(succeeded(), eq(variables['VSCODE_BUILD_LINUX'], 'true'))
timeoutInMinutes: 120
pool:
vmImage: 'Ubuntu-16.04'
variables:
VSCODE_ARCH: x64
container: snapcraft
dependsOn: Linux
steps:
- template: linux/snap-build-linux.yml
# - job: LinuxArmhf
# condition: and(succeeded(), eq(variables['VSCODE_BUILD_LINUX_ARMHF'], 'true'), ne(variables['VSCODE_QUALITY'], 'stable'))
# timeoutInMinutes: 120
# pool:
# vmImage: 'Ubuntu-16.04'
# variables:
# VSCODE_ARCH: armhf
# steps:
# - template: linux/product-build-linux-arm.yml
- job: LinuxArmhf
condition: and(succeeded(), eq(variables['VSCODE_BUILD_LINUX_ARMHF'], 'true'), ne(variables['VSCODE_QUALITY'], 'stable'))
timeoutInMinutes: 120
pool:
vmImage: 'Ubuntu-16.04'
variables:
VSCODE_ARCH: armhf
steps:
- template: linux/product-build-linux-arm.yml
# - job: LinuxAlpine
# condition: and(succeeded(), eq(variables['VSCODE_BUILD_LINUX_ALPINE'], 'true'), ne(variables['VSCODE_QUALITY'], 'stable'))
# timeoutInMinutes: 120
# pool:
# vmImage: 'Ubuntu-16.04'
# variables:
# VSCODE_ARCH: alpine
# steps:
# - template: linux/product-build-linux-alpine.yml
- job: LinuxAlpine
condition: and(succeeded(), eq(variables['VSCODE_BUILD_LINUX_ALPINE'], 'true'), ne(variables['VSCODE_QUALITY'], 'stable'))
timeoutInMinutes: 120
pool:
vmImage: 'Ubuntu-16.04'
variables:
VSCODE_ARCH: alpine
steps:
- template: linux/product-build-linux-alpine.yml
# - job: macOS
# condition: and(succeeded(), eq(variables['VSCODE_BUILD_MACOS'], 'true'))
# timeoutInMinutes: 120
# pool:
# vmImage: macOS 10.13
# steps:
# - template: darwin/product-build-darwin.yml
- job: macOS
condition: and(succeeded(), eq(variables['VSCODE_BUILD_MACOS'], 'true'))
timeoutInMinutes: 120
pool:
vmImage: macOS 10.13
steps:
- template: darwin/product-build-darwin.yml
# - job: Release
# condition: and(succeeded(), or(eq(variables['VSCODE_RELEASE'], 'true'), and(or(eq(variables['VSCODE_QUALITY'], 'insider'), eq(variables['VSCODE_QUALITY'], 'exploration')), eq(variables['Build.Reason'], 'Schedule'))))
# pool:
# vmImage: 'Ubuntu-16.04'
# dependsOn:
# - Windows
# - Windows32
# - Linux
# - LinuxSnap
# - LinuxArmhf
# - LinuxAlpine
# - macOS
# steps:
# - template: release.yml
- job: Release
condition: and(succeeded(), or(eq(variables['VSCODE_RELEASE'], 'true'), and(or(eq(variables['VSCODE_QUALITY'], 'insider'), eq(variables['VSCODE_QUALITY'], 'exploration')), eq(variables['Build.Reason'], 'Schedule'))))
pool:
vmImage: 'Ubuntu-16.04'
dependsOn:
- Windows
- Windows32
- Linux
- LinuxSnap
- LinuxArmhf
- LinuxAlpine
- macOS
steps:
- template: release.yml
# - job: Mooncake
# pool:
# vmImage: 'Ubuntu-16.04'
# condition: true
# dependsOn:
# - Windows
# - Windows32
# - Linux
# - LinuxSnap
# - LinuxArmhf
# - LinuxAlpine
# - macOS
# steps:
# - template: sync-mooncake.yml
- job: Mooncake
pool:
vmImage: 'Ubuntu-16.04'
condition: true
dependsOn:
- Windows
- Windows32
- Linux
- LinuxSnap
- LinuxArmhf
- LinuxAlpine
- macOS
steps:
- template: sync-mooncake.yml
schedules:
- cron: "0 6 * * Mon-Fri"
......
......@@ -56,6 +56,16 @@ steps:
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'npm-vscode'
- powershell: |
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
exec { yarn postinstall }
exec { pushd build ; yarn postinstall ; popd }
exec { pushd extensions ; yarn postinstall ; popd }
exec { pushd test\smoke ; yarn postinstall ; popd }
displayName: Run postinstall scripts
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
- powershell: |
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册