Skip to content

A small tool automatically measure performance in different branches

Notifications You must be signed in to change notification settings

festicket/stick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stick

Dev dependencies

This project requires Go to develop. All dependencies are are listed in the Brewfile, and can be installed using Homebrew:

brew bundle

Build

You have two options to build the binary:

  1. If you have Go installed locally and you checkouted the repository withint your $GOPATH then just use: Run:
make build
  1. You also can checkout the repo anywhere and build the binary using Docker:
make build_docker

By default build_docker command will build the binary for MacOS (amd64) but you can override this via GOOS and GOARCH paramaters e.g.

make build_docker GOOS=windows
  • although currently it is tested only for MacOS.

Either way you will have a binary called stick in the current directory.

In order of it to work - need to create a config file:

cp config.json.example config.json

Update config.json

Where:

command: a command to run the server and make it ready to accept HTTP requests to the endpoint specified as url. For example you might want to checkout a specific branch, reset the cache and start the server.

To do that, you could create a shell script to run your Django-like project:

cd /foo/bar/project/ &&
git reset HEAD --hard && git checkout feature &&
source venv/bin/activate &&
python manage.py runserver

pre_request_command: the same idea as for command but it will be executed before earch HTTP request.

About

A small tool automatically measure performance in different branches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published