mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
41 lines
874 B
YAML
41 lines
874 B
YAML
go_import_path: github.com/minio/minio
|
|
sudo: required
|
|
|
|
services:
|
|
- docker
|
|
|
|
dist: trusty
|
|
|
|
language: go
|
|
|
|
os:
|
|
- linux
|
|
|
|
env:
|
|
- ARCH=x86_64
|
|
- ARCH=i686
|
|
|
|
script:
|
|
## Run all the tests
|
|
- make
|
|
- make test GOFLAGS="-timeout 15m -race -v"
|
|
- make coverage
|
|
|
|
# Refer https://blog.hypriot.com/post/setup-simple-ci-pipeline-for-arm-images/
|
|
# push image
|
|
- >
|
|
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$ARCH" == "x86_64" ]; then
|
|
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
docker build -t minio/minio:edge-armhf . -f Dockerfile.armhf
|
|
docker build -t minio/minio:edge-aarch64 . -f Dockerfile.aarch64
|
|
docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
|
|
docker push minio/minio:edge-armhf
|
|
docker push minio/minio:edge-aarch64
|
|
fi
|
|
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
go:
|
|
- 1.7.5
|