mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
33 lines
835 B
Bash
Executable File
33 lines
835 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ./build/tfs/common/node.sh
|
|
. ./scripts/env.sh
|
|
. ./build/tfs/common/common.sh
|
|
|
|
export VSCODE_MIXIN_PASSWORD="$1"
|
|
VSO_PAT="$2"
|
|
|
|
echo "machine monacotools.visualstudio.com password $VSO_PAT" > ~/.netrc
|
|
|
|
step "Install dependencies" \
|
|
npm install
|
|
|
|
step "Mix in repository from vscode-distro" \
|
|
npm run gulp -- mixin
|
|
|
|
step "Install distro dependencies" \
|
|
node build/tfs/common/installDistro.js
|
|
|
|
step "Build minified & upload source maps" \
|
|
npm run gulp -- vscode-darwin-min
|
|
|
|
function runSmokeTest {
|
|
SCREENSHOTS="$AGENT_BUILDDIRECTORY/smoketest-screenshots"
|
|
rm -rf $SCREENSHOTS
|
|
|
|
cd $BUILD_SOURCESDIRECTORY/test/smoke && \
|
|
./node_modules/.bin/mocha --build "$AGENT_BUILDDIRECTORY/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/MacOS/Electron" --screenshots $SCREENSHOTS
|
|
}
|
|
|
|
step "Run smoke test" \
|
|
runSmokeTest |