Refactor tfs linux builds to suit smoke test.

This commit is contained in:
Michel Kaporin
2017-06-14 10:56:05 +02:00
parent a7d864df4c
commit 8d2f5a1075
3 changed files with 123 additions and 81 deletions

View File

@@ -0,0 +1,35 @@
#!/bin/bash
set -e
. ./scripts/env.sh
. ./build/tfs/common/common.sh
export ARCH="$1"
VSO_PAT="$2"
echo "machine monacotools.visualstudio.com password $VSO_PAT" > ~/.netrc
step "Install dependencies" \
npm install --arch=$ARCH --unsafe-perm
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 --arch=$ARCH
step "Build minified" \
npm run gulp -- --max_old_space_size=4096 "vscode-linux-$ARCH-min"
step "Run unit tests" \
./scripts/test.sh --xvfb --build --reporter dot
step "Run smoke test" \
pushd test/smoke
npm install
npm run compile
node src/main.js --latest "$AGENT_BUILDDIRECTORY/VSCode-linux-ia32/code-insiders"
popd