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

postinstall scripts all around

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