Skip to content

Commit

Permalink
Prep for CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwynn committed Jan 17, 2014
1 parent 99fe669 commit ed84064
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 23 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,6 @@
language: bash language: go
script: go:
- bash script/test - 1.1.1
install:
- script/build
script: script/test
Binary file modified bin/flint
Binary file not shown.
Binary file added bin/gp-darwin-amd64
Binary file not shown.
Binary file added bin/gp-linux-amd64
Binary file not shown.
2 changes: 2 additions & 0 deletions gopack.config
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,5 @@
repo = "github.com/pengwynn/flint"

[deps.assert] [deps.assert]
import = "github.com/bmizerany/assert" import = "github.com/bmizerany/assert"
commit = "e17e99893cb6509f428e1728281c2ad60a6b31e3" commit = "e17e99893cb6509f428e1728281c2ad60a6b31e3"
Expand Down
9 changes: 4 additions & 5 deletions script/bootstrap
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh #!/bin/bash


set -e gopack="bin/gp-darwin-amd64"
[ -d "/proc" ] && gopack="bin/gp-linux-amd64"


echo "Reticulating splines..." $gopack version

command -v flint >/dev/null 2>&1 || { echo >&2 "Consider adding flint to your \$PATH"; }
8 changes: 4 additions & 4 deletions script/build
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh #!/bin/bash


script/fmt script/bootstrap
binary="bin/flint" GOPATH="`pwd`/.gopack/vendor" \
go build -o $binary && echo "Built $binary" go build -v ./...
11 changes: 2 additions & 9 deletions script/fmt
Original file line number Original file line Diff line number Diff line change
@@ -1,11 +1,4 @@
#!/bin/bash #!/bin/bash


gofmt -w -l "$@" *.go GOPATH="`pwd`/.gopack/vendor" \

go fmt ./...
# don't run gofmt in these directories
ignored=(/bin/ /docs/ /log/ /script/ /tmp/)
for i in */ ; do
if [[ ! ${ignored[*]} =~ "/$i" ]]; then
gofmt -w -l "$@" "${i%?}"
fi
done
6 changes: 4 additions & 2 deletions script/test
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh #!/bin/bash


go test -v ./flint_test.go script/fmt
GOPATH="`pwd`/.gopack/vendor" \
go test -v ./...

0 comments on commit ed84064

Please sign in to comment.