minio/.travis.yml

44 lines
825 B
YAML
Raw Normal View History

go_import_path: github.com/minio/minio
2016-02-10 19:40:09 -05:00
sudo: required
services:
- docker
2016-02-10 19:40:09 -05:00
dist: trusty
2015-04-11 20:23:13 -04:00
language: go
os:
- linux
env:
- ARCH=x86_64
- ARCH=i686
script:
# Refer https://blog.hypriot.com/post/setup-simple-ci-pipeline-for-arm-images/
# prepare qemu
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
# build image
- docker build -t minio/minio:edge-armhf . -f Dockerfile.armhf
# test image
- docker run --rm minio/minio:edge-armhf version
## Run all the tests
2016-12-02 20:42:37 -05:00
- make
- make test GOFLAGS="-timeout 15m -race -v"
2016-08-04 19:48:50 -04:00
- make coverage
# push image
- >
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
docker push minio/minio:edge-armhf
fi
2016-08-04 19:48:50 -04:00
after_success:
- bash <(curl -s https://codecov.io/bash)
2015-04-11 20:23:13 -04:00
go:
- 1.7.5