Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (37 sloc) 1.71 KB
# This is the Travis CI (continuous integration) configuration for thrift4go.
#
# Thus far, this merely checks out HEAD of thrift4go, builds it against whatever
# the current release label for Go is, and runs the associated tests.
# Since no canonical Go example for Travis CI exists, this one has been
# crutched:
#
# https://github.com/matttproud/golang_instrumentation/blob/master/.travis.yml.
language: erlang
# 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:
- export REPO="$(pwd | sed s,^/home/travis/builds/,,g)" && echo "${REPO}"
- export COMMITID="$(git log -1 --pretty="%H")" && echo "${COMMITID}"
- 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
- sudo apt-get install -y maven || true
- sudo apt-get install -y maven2 || true
install:
- 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/${REPO}" "${HOME}/src/thrift4go"
- mkdir -p "${HOME}/github.com/${REPO}"
- git clone https://github.com/${REPO}.git "${HOME}/github.com/${REPO}"
- cd "${HOME}/github.com/${REPO}"
- git checkout -qf ${COMMITID}
script:
- make test