Skip to content

Commit

Permalink
Updating README and adding build script
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpresta committed Jan 5, 2015
1 parent eaf17c9 commit c578cd3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ _testmain.go
*.test

httpbin/
built/

chameleon
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

chameleon is a caching reverse proxy.

chameleon supports recording and replaying requests for multiple, simultaneous services.
chameleon supports recording and replaying requests with the ability to customize how responses are stored.

## Why is chameleon useful?

* Proxy rate-limited APIs for local development
* Create reliable test environments
* Test services in places you normally couldn't due to firewalling, etc (CI servers being common)
* Improve speed of "interface tests" by never leaving your local network
* Improve speed of tests by never leaving your local network

## What can't I do with chameleon?

Expand Down
25 changes: 25 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh

OUT="./built/"
if [ ! -d "$OUT" ]; then
mkdir "$OUT"
fi

VERSION="$1"
if [ $# -eq 0 ]; then
VERSION="dev"
fi

cd "$OUT"
gox -output "chameleon_${VERSION}_{{.OS}}_{{.Arch}}" github.com/NickPresta/chameleon

for file in chameleon_*; do
if [[ "$file" == *.exe ]]; then
name="chameleon.exe"
else
name="chameleon"
fi
mv "$file" $name
zip "$file.zip" $name
rm $name
done

0 comments on commit c578cd3

Please sign in to comment.