2016-04-19 02:02:33 +03:00
|
|
|
.PHONY: build test benchmark publish
|
2016-04-14 23:38:41 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
gem build lightstep-tracer.gemspec
|
|
|
|
|
|
|
|
test:
|
|
|
|
rake spec
|
2016-04-16 00:14:19 +03:00
|
|
|
ruby example.rb
|
2016-04-14 23:38:41 +03:00
|
|
|
|
2016-04-19 02:02:33 +03:00
|
|
|
benchmark:
|
|
|
|
ruby benchmark/bench.rb
|
2016-04-25 21:55:07 +03:00
|
|
|
ruby benchmark/threading/thread_test.rb
|
2016-04-19 02:02:33 +03:00
|
|
|
|
|
|
|
publish: build test benchmark
|
2016-04-16 00:22:12 +03:00
|
|
|
ruby -e 'require "bump"; Bump::Bump.run("patch")'
|
2016-04-15 01:05:34 +03:00
|
|
|
make build # rebuild after version increment
|
2016-04-15 01:09:44 +03:00
|
|
|
git tag `ruby scripts/version.rb`
|
2016-04-15 01:05:34 +03:00
|
|
|
git push
|
|
|
|
git push --tags
|
2016-04-15 01:09:44 +03:00
|
|
|
gem push lightstep-tracer-`ruby scripts/version.rb`.gem
|
2016-04-21 23:55:39 +03:00
|
|
|
|
|
|
|
# An internal LightStep target for regenerating the thrift protocol files
|
|
|
|
.PHONY: thrift
|
|
|
|
thrift:
|
|
|
|
thrift -r -gen rb -out lib/lightstep/tracer/thrift $(LIGHTSTEP_HOME)/go/src/crouton/crouton.thrift
|
|
|
|
rm lib/lightstep/tracer/thrift/reporting_service.rb
|
|
|
|
rm lib/lightstep/tracer/thrift/crouton_constants.rb
|
2016-04-22 01:11:50 +03:00
|
|
|
ruby scripts/patch_thrift.rb
|