#!/bin/bash

curl -v -X POST -d "{\"title\": \"test\", \"branch\": \"origin/master\", \"revision\": \"rev\", \"author\": \"Peter\", \"tags\": []}" http://localhost:8093/project/1/build

curl -v -X POST -d "{\"title\": \"test [ci skip]\", \"branch\": \"origin/master\", \"revision\": \"rev\", \"author\": \"Peter\", \"tags\": []}" http://localhost:8093/project/1/build

curl -v -X POST -d "payload={\"pusher\":{\"name\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"repository\":{\"name\":\"kha\",\"size\":1096,\"created_at\":\"2012-05-12T12:37:58-07:00\",\"has_wiki\":true,\"private\":false,\"watchers\":8,\"url\":\"https://github.com/greenelephantlabs/kha\",\"fork\":false,\"language\":\"JavaScript\",\"pushed_at\":\"2012-08-21T06:51:11-07:00\",\"has_downloads\":true,\"open_issues\":0,\"has_issues\":true,\"homepage\":\"\",\"stargazers\":8,\"forks\":1,\"description\":\"Lightweight Erlang continious integration\",\"organization\":\"greenelephantlabs\",\"owner\":{\"name\":\"greenelephantlabs\",\"email\":null}},\"forced\":false,\"head_commit\":{\"added\":[],\"modified\":[\"run_rest_build.sh\",\"src/kha_build_handler.erl\"],\"removed\":[],\"author\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"timestamp\":\"2012-08-21T06:51:05-07:00\",\"url\":\"https://github.com/greenelephantlabs/kha/commit/14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"id\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"distinct\":true,\"message\":\"add [ci skip] support for non-hook build POST URL\",\"committer\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"}},\"after\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"deleted\":false,\"ref\":\"refs/heads/tests\",\"commits\":[{\"added\":[],\"modified\":[\"run_rest_build.sh\",\"src/kha_build_handler.erl\"],\"removed\":[],\"author\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"timestamp\":\"2012-08-21T06:51:05-07:00\",\"url\":\"https://github.com/greenelephantlabs/kha/commit/14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"id\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"distinct\":true,\"message\":\"add [ci skip] support for non-hook build POST URL\",\"committer\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"}}],\"before\":\"72cc0f25b89002dd1dbdaab1a382613501a34cb4\",\"compare\":\"https://github.com/greenelephantlabs/kha/compare/72cc0f25b890...14069fa85a02\",\"created\":false}" http://localhost:8093/hooks/github/1

curl -v -X POST -d "payload={\"pusher\":{\"name\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"repository\":{\"name\":\"kha\",\"size\":1096,\"created_at\":\"2012-05-12T12:37:58-07:00\",\"has_wiki\":true,\"private\":false,\"watchers\":8,\"url\":\"https://github.com/greenelephantlabs/kha\",\"fork\":false,\"language\":\"JavaScript\",\"pushed_at\":\"2012-08-21T06:51:11-07:00\",\"has_downloads\":true,\"open_issues\":0,\"has_issues\":true,\"homepage\":\"\",\"stargazers\":8,\"forks\":1,\"description\":\"Lightweight Erlang continious integration\",\"organization\":\"greenelephantlabs\",\"owner\":{\"name\":\"greenelephantlabs\",\"email\":null}},\"forced\":false,\"head_commit\":{\"added\":[],\"modified\":[\"run_rest_build.sh\",\"src/kha_build_handler.erl\"],\"removed\":[],\"author\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"timestamp\":\"2012-08-21T06:51:05-07:00\",\"url\":\"https://github.com/greenelephantlabs/kha/commit/14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"id\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"distinct\":true,\"message\":\"add ci skip support for non-hook build POST URL\",\"committer\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"}},\"after\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"deleted\":false,\"ref\":\"refs/heads/tests\",\"commits\":[{\"added\":[],\"modified\":[\"run_rest_build.sh\",\"src/kha_build_handler.erl\"],\"removed\":[],\"author\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"timestamp\":\"2012-08-21T06:51:05-07:00\",\"url\":\"https://github.com/greenelephantlabs/kha/commit/14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"id\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"distinct\":true,\"message\":\"add ci skip support for non-hook build POST URL\",\"committer\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"}}],\"before\":\"72cc0f25b89002dd1dbdaab1a382613501a34cb4\",\"compare\":\"https://github.com/greenelephantlabs/kha/compare/72cc0f25b890...14069fa85a02\",\"created\":false}" http://localhost:8093/hooks/github/1
