You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
874 B

  1. go_import_path: github.com/minio/minio
  2. sudo: required
  3. services:
  4. - docker
  5. dist: trusty
  6. language: go
  7. os:
  8. - linux
  9. env:
  10. - ARCH=x86_64
  11. - ARCH=i686
  12. script:
  13. ## Run all the tests
  14. - make
  15. - make test GOFLAGS="-timeout 15m -race -v"
  16. - make coverage
  17. # Refer https://blog.hypriot.com/post/setup-simple-ci-pipeline-for-arm-images/
  18. # push image
  19. - >
  20. if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$ARCH" == "x86_64" ]; then
  21. docker run --rm --privileged multiarch/qemu-user-static:register --reset
  22. docker build -t minio/minio:edge-armhf . -f Dockerfile.armhf
  23. docker build -t minio/minio:edge-aarch64 . -f Dockerfile.aarch64
  24. docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
  25. docker push minio/minio:edge-armhf
  26. docker push minio/minio:edge-aarch64
  27. fi
  28. after_success:
  29. - bash <(curl -s https://codecov.io/bash)
  30. go:
  31. - 1.7.5