mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
35 lines
760 B
Bash
Executable File
35 lines
760 B
Bash
Executable File
#!/bin/bash
|
|
# run jankie on one commit
|
|
|
|
# These need to be running:
|
|
#
|
|
# docker run --net=host -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:2.52.0
|
|
# docker run -d -p 5984:5984 --name couchdb klaemo/couchdb
|
|
#
|
|
# Initialize the results DB
|
|
#
|
|
# perfjankie --only-update-site --couch-server http://local.docker:5984 --couch-database performance
|
|
#
|
|
# Usage:
|
|
#
|
|
# ./run-jankie.sh 192.168.64.3:4040
|
|
#
|
|
# View results: http://local.docker:5984/performance/_design/site/index.html
|
|
#
|
|
|
|
set -x
|
|
set -e
|
|
|
|
HOST="$1"
|
|
DATE=$(git log --format="%at" -1)
|
|
COMMIT=$(git log --format="%h" -1)
|
|
|
|
echo "Testing $COMMIT on $DATE"
|
|
|
|
../../scope stop
|
|
make SUDO= -C ../..
|
|
../../scope launch
|
|
sleep 5
|
|
|
|
COMMIT="$COMMIT" DATE=$DATE HOST=$HOST DEBUG=scope* node ./perfjankie/main.js
|