run-jankie.sh 1005 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. # run jankie on one commit
  3. # These need to be running:
  4. #
  5. # docker run --net=host -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:2.52.0
  6. # docker run -d -p 5984:5984 --name couchdb klaemo/couchdb
  7. #
  8. # Initialize the results DB
  9. #
  10. # perfjankie --only-update-site --couch-server http://local.docker:5984 --couch-database performance
  11. #
  12. # Optional: run from localhost which can be a bit fast than rebuilding...
  13. # - ssh -R 0.0.0.0:4042:localhost:4042 docker@local.docker
  14. # - npm run build
  15. # - BACKEND_HOST=local.docker npm start
  16. # - ./run-jankie.sh 192.168.64.3:4042
  17. #
  18. # Usage:
  19. #
  20. # ./run-jankie.sh 192.168.64.3:4040
  21. #
  22. # View results: http://local.docker:5984/performance/_design/site/index.html
  23. #
  24. set -x
  25. set -e
  26. HOST="$1"
  27. DATE=$(git log --format="%at" -1)
  28. COMMIT=$(git log --format="%h" -1)
  29. echo "Testing $COMMIT on $DATE"
  30. # ../../scope stop
  31. # make SUDO= -C ../..
  32. # ../../scope launch
  33. # sleep 5
  34. COMMIT="$COMMIT" DATE=$DATE HOST=$HOST DEBUG="scope*" node ./perfjankie/main.js