language: go
go:
  - 1.2
  - release
  - tip
branches:
  only:
    - master
install:
  - cd; mkdir gopkg; export GOPATH=$HOME/gopkg
# This is for the CLI interface - we want to build it
  - go get -tags nogui github.com/agl/pond/client
# Someday, we want to build the GTK stuff and the following tag should do it
  - go get -tags ubuntu github.com/agl/pond/client
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq golang git libgtk-3-dev libgtkspell-3-dev libtspi-dev trousers tor mercurial pkg-config libgtkspell-3-0 libgtkspell0
script:
  - go build -tags nogui github.com/agl/pond/client
  # This currently fails:
  # - go test -tags nogui github.com/agl/pond/client
  - go build -tags ubuntu github.com/agl/pond/client
  # This currently fails:
  # - go test -tags ubuntu github.com/agl/pond/client
  - go build -tags ubuntu github.com/agl/pond/server
  # This currently fails:
  #- go test -tags ubuntu github.com/agl/pond/server
  - go build -tags ubuntu github.com/agl/pond/editstate
  - go test -tags ubuntu github.com/agl/pond/editstate
  - go build -tags ubuntu github.com/agl/pond/decrypt
  # This isn't currently building as it lacks tests:
  # - go test -tags ubuntu github.com/agl/pond/decrypt
  - go build github.com/agl/pond/panda
  - go test github.com/agl/pond/panda
  - go build github.com/agl/pond/bbssig
  - go test github.com/agl/pond/bbssig
  # This currently fails:
  # - go build github.com/agl/pond/bn256cgo
  # - go test github.com/agl/pond/bn256cgo
  - go build github.com/agl/pond/pathrewrite
  # This isn't currently building as it lacks tests:
  # - go test github.com/agl/pond/pathrewrite
  # This requires some work to run a server and then we may also run the transport tests:
  # go test github.com/agl/pond/transport

Add Travis config (a continuous build system)
Add Travis config (a continuous build system)
