提交 b816ed5b 编写于 作者: J Joao Moreno

run postinstall scripts if yarn cache is restored

上级 7013ce7a
......@@ -54,6 +54,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
......
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册