2016-10-17 11:42:20 -04:00
|
|
|
go_import_path: github.com/minio/minio
|
2016-02-10 19:40:09 -05:00
|
|
|
sudo: required
|
2016-09-28 21:49:16 -04:00
|
|
|
|
2017-03-07 18:15:05 -05:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2016-02-10 19:40:09 -05:00
|
|
|
dist: trusty
|
2016-09-28 21:49:16 -04:00
|
|
|
|
2015-04-11 20:23:13 -04:00
|
|
|
language: go
|
2016-01-14 21:17:24 -05:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
|
|
|
env:
|
|
|
|
- ARCH=x86_64
|
|
|
|
- ARCH=i686
|
|
|
|
|
2015-09-18 01:10:09 -04:00
|
|
|
script:
|
2017-03-07 18:15:05 -05:00
|
|
|
## Run all the tests
|
2016-12-02 20:42:37 -05:00
|
|
|
- make
|
2017-06-02 17:05:51 -04:00
|
|
|
- diff -au <(gofmt -d cmd) <(printf "")
|
|
|
|
- diff -au <(gofmt -d pkg) <(printf "")
|
2017-02-21 04:32:05 -05:00
|
|
|
- make test GOFLAGS="-timeout 15m -race -v"
|
2016-08-04 19:48:50 -04:00
|
|
|
- make coverage
|
|
|
|
|
2017-03-09 16:57:27 -05:00
|
|
|
# Refer https://blog.hypriot.com/post/setup-simple-ci-pipeline-for-arm-images/
|
2017-03-07 18:15:05 -05:00
|
|
|
# push image
|
|
|
|
- >
|
2017-03-07 19:30:19 -05:00
|
|
|
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$ARCH" == "x86_64" ]; then
|
2017-03-09 16:57:27 -05:00
|
|
|
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
|
2017-03-07 18:15:05 -05:00
|
|
|
docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
|
|
|
|
docker push minio/minio:edge-armhf
|
2017-03-09 16:57:27 -05:00
|
|
|
docker push minio/minio:edge-aarch64
|
2017-03-07 18:15:05 -05:00
|
|
|
fi
|
|
|
|
|
2016-08-04 19:48:50 -04:00
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2016-01-14 21:17:24 -05:00
|
|
|
|
2015-04-11 20:23:13 -04:00
|
|
|
go:
|
2017-08-06 14:27:33 -04:00
|
|
|
- 1.8.3
|