mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
* Initial 1.19 xcopy * Fix yarn build * Fix numerous build breaks * Next batch of build break fixes * More build break fixes * Runtime breaks * Additional post merge fixes * Fix windows setup file * Fix test failures. * Update license header blocks to refer to source eula
62 lines
1.8 KiB
Bash
62 lines
1.8 KiB
Bash
#!/bin/bash
|
|
|
|
. ./build/tfs/common/node.sh
|
|
. ./scripts/env.sh
|
|
. ./build/tfs/common/common.sh
|
|
|
|
export ARCH="$1"
|
|
export npm_config_arch="$ARCH"
|
|
export VSCODE_MIXIN_PASSWORD="$2"
|
|
export AZURE_STORAGE_ACCESS_KEY="$3"
|
|
export AZURE_STORAGE_ACCESS_KEY_2="$4"
|
|
export MOONCAKE_STORAGE_ACCESS_KEY="$5"
|
|
export AZURE_DOCUMENTDB_MASTERKEY="$6"
|
|
export LINUX_REPO_PASSWORD="$7"
|
|
VSO_PAT="$8"
|
|
|
|
echo "machine monacotools.visualstudio.com password $VSO_PAT" > ~/.netrc
|
|
|
|
step "Install dependencies" \
|
|
yarn
|
|
|
|
step "Hygiene" \
|
|
npm run gulp -- hygiene
|
|
|
|
step "Mix in repository from vscode-distro" \
|
|
npm run gulp -- mixin
|
|
|
|
step "Get Electron" \
|
|
npm run gulp -- "electron-$ARCH"
|
|
|
|
step "Install distro dependencies" \
|
|
node build/tfs/common/installDistro.js
|
|
|
|
step "Build minified" \
|
|
npm run gulp -- "vscode-linux-$ARCH-min"
|
|
|
|
# step "Create loader snapshot"
|
|
# node build/lib/snapshotLoader.js --arch=$ARCH
|
|
|
|
step "Run unit tests" \
|
|
./scripts/test.sh --build --reporter dot
|
|
|
|
# function smoketest {
|
|
# id -u testuser &>/dev/null || (useradd -m testuser; chpasswd <<< testuser:testpassword)
|
|
# sudo -i -u testuser -- sh -c 'git config --global user.name "VS Code Agent" && git config --global user.email "monacotools@microsoft.com"'
|
|
|
|
# ARTIFACTS="$AGENT_BUILDDIRECTORY/smoketest-artifacts"
|
|
# rm -rf $ARTIFACTS
|
|
# mkdir -p $ARTIFACTS
|
|
# chown -R testuser $ARTIFACTS
|
|
|
|
# ps -o pid= -u testuser | xargs sudo kill -9
|
|
# DISPLAY=:10 sudo -i -u testuser -- sh -c "cd $BUILD_SOURCESDIRECTORY/test/smoke && ./node_modules/.bin/mocha --build $AGENT_BUILDDIRECTORY/VSCode-linux-$ARCH --log $ARTIFACTS"
|
|
# # DISPLAY=:10 sudo -i -u testuser -- sh -c "cd /vso/work/1/s/test/smoke && ./node_modules/.bin/mocha --build /vso/work/1/VSCode-linux-ia32"
|
|
# }
|
|
|
|
# step "Run smoke test" \
|
|
# smoketest
|
|
|
|
step "Publish release" \
|
|
./build/tfs/linux/release.sh
|