.travis.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. language: go
  2. go_import_path: github.com/coreos/etcd
  3. sudo: required
  4. services: docker
  5. go:
  6. - 1.12.9
  7. env:
  8. - GO111MODULE=on
  9. notifications:
  10. on_success: never
  11. on_failure: never
  12. env:
  13. matrix:
  14. - TARGET=linux-amd64-integration-1-cpu
  15. - TARGET=linux-amd64-integration-4-cpu
  16. - TARGET=linux-amd64-functional
  17. - TARGET=linux-amd64-unit
  18. - TARGET=linux-amd64-e2e
  19. - TARGET=all-build
  20. - TARGET=linux-386-unit
  21. matrix:
  22. fast_finish: true
  23. allow_failures:
  24. - go: 1.12.9
  25. env: TARGET=linux-386-unit
  26. install:
  27. - go get -t -v -d ./...
  28. script:
  29. - echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
  30. - >
  31. case "${TARGET}" in
  32. linux-amd64-integration-1-cpu)
  33. GOARCH=amd64 CPU=1 PASSES='integration' ./test
  34. ;;
  35. linux-amd64-integration-4-cpu)
  36. GOARCH=amd64 CPU=4 PASSES='integration' ./test
  37. ;;
  38. linux-amd64-functional)
  39. ./build && GOARCH=amd64 PASSES='functional' ./test
  40. ;;
  41. linux-amd64-unit)
  42. ./build && GOARCH=amd64 PASSES='unit' ./test
  43. ;;
  44. linux-amd64-e2e)
  45. GOARCH=amd64 PASSES='build release e2e' MANUAL_VER=v3.3.13 ./test
  46. ;;
  47. all-build)
  48. GOARCH=386 PASSES='build' ./test \
  49. && GO_BUILD_FLAGS='-v' GOOS=darwin GOARCH=amd64 ./build \
  50. && GO_BUILD_FLAGS='-v' GOARCH=arm ./build \
  51. && GO_BUILD_FLAGS='-v' GOARCH=arm64 ./build \
  52. && GO_BUILD_FLAGS='-v' GOARCH=ppc64le ./build
  53. ;;
  54. linux-386-unit)
  55. GOARCH=386 ./build && GOARCH=386 PASSES='unit' ./test
  56. ;;
  57. esac