.gitlab-ci.yml 725 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. image: golang:alpine
  2. stages:
  3. - test
  4. variables:
  5. GO_PACKAGE: "howett.net/plist"
  6. before_script:
  7. - "mkdir -p $(dirname $GOPATH/src/$GO_PACKAGE)"
  8. - "ln -s $(pwd) $GOPATH/src/$GO_PACKAGE"
  9. - "cd $GOPATH/src/$GO_PACKAGE"
  10. .template:go-test: &template-go-test
  11. stage: test
  12. script:
  13. - go test
  14. go-test-cover:latest:
  15. stage: test
  16. script:
  17. - go test -v -cover
  18. coverage: '/^coverage: \d+\.\d+/'
  19. go-test-appengine:latest:
  20. stage: test
  21. script:
  22. - go test -tags appengine
  23. go-test:1.6:
  24. <<: *template-go-test
  25. image: golang:1.6-alpine
  26. go-test:1.4:
  27. <<: *template-go-test
  28. image: golang:1.4-alpine
  29. go-test:1.2:
  30. <<: *template-go-test
  31. image: golang:1.2