Determine whether Go exists in the Travis CI.

This commit is contained in:
Matt T. Proud 2012-07-10 22:47:44 -07:00
parent a0f424f3ce
commit 7ad00de665
1 changed files with 6 additions and 14 deletions

View File

@ -1,20 +1,12 @@
language: erlang language: go
before_install: before_install:
- sudo apt-get install bzr >/dev/null 2>&1 - true
install: install:
- hg clone -u release https://code.google.com/p/go "${HOME}/go" >/dev/null 2>&1 - dpkg -l 'go*' || true
- cd "${HOME}/go/src" && ./make.bash >/dev/null 2>&1 - which go || true
- mkdir -p "${HOME}/src" || true - locate go || true
- mkdir -p "${HOME}/bin" || true
- mkdir -p "${HOME}/pkg" || true
- export GOPATH="${HOME}"
- export PATH=${PATH}:${HOME}/go/bin
- ln -s "${HOME}/builds/matttproud/golang_instrumentation" "${HOME}/src/golang_instrumentation"
- go get -v launchpad.net/gocheck >/dev/null 2>&1
- go get -v github.com/matttproud/golang_instrumentation
script: script:
- go build -a -v github.com/matttproud/golang_instrumentation/... - true
- go test -v github.com/matttproud/golang_instrumentation/...