Permalink
Browse files

no longer use all.sh

  • Loading branch information...
1 parent 2197230 commit 5d190503f5ea59e5f1cf127850cb045f3cbc5ddf @bmizerany bmizerany committed Sep 3, 2011
Showing with 15 additions and 35 deletions.
  1. +7 −6 README.md
  2. +8 −18 bin/compile
  3. +0 −8 compile-test.sh
  4. +0 −3 test/all.sh
View
@@ -2,12 +2,13 @@
*Use*
- $ cat all.sh
- #!/bin/sh
- set -e
- GOPATH="$PWD"
- export GOPATH
- goinstall ./src/prettydemo/prettydemo
+ $ find . -type f
+ Procfile
+ src/prettydemo/prettydemo/main.go
+ src/prettydemo/web/web.go
+
+ $ cat Procfile
+ web: ./bin/prettydemo -l :$PORT
$ heroku create --stack cedar
$ heroku config:add LANGUAGE_PACK_URL="https://user:pass@github.com/heroku/language-pack-go.git"
View
@@ -41,21 +41,11 @@ fi
# unset git dir or it will mess with goinstall
unset GIT_DIR
-if [ -f $build/all.sh ]
-then
- echo "-----> Running all.sh"
- (
- cd $build && ./all.sh
- ) | indent
-else
- echo "-----> Running goinstall"
- (
- cd $build
- GOPATH="$PWD"
- export GOPATH
-
- for f in $(find src -type f | egrep "\.go$" | sort | uniq)
- do goinstall ./$(dirname $f)
- done
- )
-fi
+echo "-----> Running goinstall"
+cd $build
+GOPATH="$PWD"
+export GOPATH
+
+for f in $(find src -type f | egrep "\.go$" | sort | uniq)
+do goinstall ./$(dirname $f)
+done
View
@@ -50,14 +50,6 @@ it_compiles_app() {
test "$(./build/bin/mytest 2>&1)" = "ok"
}
-it_goinstalls_for_no_all_sh() {
- rm build/all.sh
- compile
- test -f build/bin/mytest
- test -x build/bin/mytest
- test "$(./build/bin/mytest 2>&1)" = "ok"
-}
-
it_deletes_cache() {
# Here only to delete the cache dir
rm -rf cache
View
@@ -1,3 +0,0 @@
-GOPATH="$PWD:$GOPATH"
-export GOPATH
-goinstall ./src/mytest

0 comments on commit 5d19050

Please sign in to comment.