Simplify the Travis-CI configuration.
Even though Travis does NOT offer a consistent Go platform, I want to nevertheless simplify the scaffolding scripts around it to make it easier for other folks to perform pull requests, reviews, etc. while letting the tests run.
This commit is contained in:
parent
7d03988350
commit
96c93dad9d
22
.travis.yml
22
.travis.yml
|
@ -1,27 +1,9 @@
|
||||||
language: erlang
|
language: go
|
||||||
|
|
||||||
# N.B.(matttproud): Travis CI now includes the Go runtime packages made and
|
|
||||||
# maintained by who-knows-whom. They conflict with the
|
|
||||||
# hermeticness of the test environment and are thusly
|
|
||||||
# removed.
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get install bzr >/dev/null 2>&1
|
- sudo apt-get install bzr >/dev/null 2>&1
|
||||||
- sudo apt-get remove -y --force-yes --purge golang || true
|
|
||||||
- sudo apt-get remove -y --force-yes --purge golang-stable || true
|
|
||||||
- sudo apt-get remove -y --force-yes --purge golang-weekly || true
|
|
||||||
- sudo apt-get remove -y --force-yes --purge golang-tip || true
|
|
||||||
- test ! -x "$(which go)" || (echo "Go is still present: $(which go)" ; exit 1)
|
|
||||||
|
|
||||||
install:
|
before_script:
|
||||||
- hg clone -u release https://code.google.com/p/go "${HOME}/go" >/dev/null 2>&1
|
|
||||||
- cd "${HOME}/go/src" && ./make.bash >/dev/null 2>&1
|
|
||||||
- mkdir -p "${HOME}/src" || 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
|
- go get -v github.com/matttproud/golang_instrumentation
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|
Loading…
Reference in New Issue