.travis.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. language: go
  2. go_import_path: gopkg.in/mgo.v2
  3. addons:
  4. apt:
  5. packages:
  6. env:
  7. global:
  8. - BUCKET=https://niemeyer.s3.amazonaws.com
  9. matrix:
  10. - GO=1.4.1 MONGODB=x86_64-2.2.7
  11. - GO=1.4.1 MONGODB=x86_64-2.4.14
  12. - GO=1.4.1 MONGODB=x86_64-2.6.11
  13. - GO=1.4.1 MONGODB=x86_64-3.0.9
  14. - GO=1.4.1 MONGODB=x86_64-3.2.3-nojournal
  15. - GO=1.5.3 MONGODB=x86_64-3.0.9
  16. - GO=1.6 MONGODB=x86_64-3.0.9
  17. install:
  18. - eval "$(gimme $GO)"
  19. - wget $BUCKET/mongodb-linux-$MONGODB.tgz
  20. - tar xzvf mongodb-linux-$MONGODB.tgz
  21. - export PATH=$PWD/mongodb-linux-$MONGODB/bin:$PATH
  22. - wget $BUCKET/daemontools.tar.gz
  23. - tar xzvf daemontools.tar.gz
  24. - export PATH=$PWD/daemontools:$PATH
  25. - go get gopkg.in/check.v1
  26. - go get gopkg.in/yaml.v2
  27. - go get gopkg.in/tomb.v2
  28. before_script:
  29. - export NOIPV6=1
  30. - make startdb
  31. script:
  32. - (cd bson && go test -check.v)
  33. - go test -check.v -fast
  34. - (cd txn && go test -check.v)
  35. # vim:sw=4:ts=4:et