Permalink
Browse files

Prep for CI build

  • Loading branch information...
1 parent 99fe669 commit ed84064ca4bd835c48c5df9447bed9be05c3db4a @pengwynn committed Jan 17, 2014
Showing with 22 additions and 23 deletions.
  1. +6 −3 .travis.yml
  2. BIN bin/flint
  3. BIN bin/gp-darwin-amd64
  4. BIN bin/gp-linux-amd64
  5. +2 −0 gopack.config
  6. +4 −5 script/bootstrap
  7. +4 −4 script/build
  8. +2 −9 script/fmt
  9. +4 −2 script/test
View
@@ -1,3 +1,6 @@
-language: bash
-script:
- - bash script/test
+language: go
+go:
+- 1.1.1
+install:
+- script/build
+script: script/test
View
BIN bin/flint
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -1,3 +1,5 @@
+repo = "github.com/pengwynn/flint"
+
[deps.assert]
import = "github.com/bmizerany/assert"
commit = "e17e99893cb6509f428e1728281c2ad60a6b31e3"
View
@@ -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..."
-
-command -v flint >/dev/null 2>&1 || { echo >&2 "Consider adding flint to your \$PATH"; }
+$gopack version
View
@@ -1,5 +1,5 @@
-#!/bin/sh
+#!/bin/bash
-script/fmt
-binary="bin/flint"
-go build -o $binary && echo "Built $binary"
+script/bootstrap
+GOPATH="`pwd`/.gopack/vendor" \
+ go build -v ./...
View
@@ -1,11 +1,4 @@
#!/bin/bash
-gofmt -w -l "$@" *.go
-
-# 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
+GOPATH="`pwd`/.gopack/vendor" \
+ go fmt ./...
View
@@ -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.