forked from pomack/thrift4go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (37 loc) · 1.71 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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