This repository was archived by the owner on Apr 5, 2020. It is now read-only.
-
Couldn't load subscription status.
- Fork 0
Testing
Timm Friebe edited this page May 28, 2014
·
4 revisions
Before you start, add a configuration file named mq.ini to etc/dev/:
[endpoint]
url="stomp://user:password@example.com:61613?vhost=/"
[queue]
trigger=/queue/xp.trigger.dev
build=/exchange/xp.build.dev
build.xar=/queue/xp.build.xar.dev
build.mvn=/queue/xp.build.mvn.devThen, as this is written in XP Language, you need to compile the sources:
$ xcc -o dist/ -sp src/main/xp/ src/Fire up our local webserver:
$ xpws
[xpws-dev#4180] running @ localhost:8080. Press <Enter> to exitThen open another shell and:
$ curl -X POST -d @res/tag-payload.data http://localhost:8080/hook
# This will trigger a build with application/x-www-form-urlencoded data
$ curl -X POST -d @res/tag-payload.json http://localhost:8080/hook
# This will trigger a build woth application/json dataUse the xpcli utility provided:
$ xpcli -c etc/dev/ net.xp_framework.build.subscriber.TriggerBuild thekid/xp-framework 5.9.0RC5
# This will trigger a build. The tag must exist!
$ xpcli -c etc/dev/ net.xp_framework.build.subscriber.TriggerBuild thekid/xp-framework 5.9.0RC5 -t master
# This will trigger a snapshot buildCreate repo checkout:
$ xpcli -c etc/dev/ net.xp_framework.build.subscriber.FetchRepositoryFinally, use the subscriber:
$ xpcli -c etc/dev/ net.xp_framework.build.subscriber.XarRelease- http://requestb.in - for testing HTTP requests
- https://help.github.com/articles/post-receive-hooks - hooks payload