2018-08-02 00:37:21 +02:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
# setup travis so that we can run containers for integration tests
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2020-04-07 12:01:48 +02:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- arch: amd64
|
|
|
|
- arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
|
2018-08-02 00:37:21 +02:00
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2020-01-29 13:15:29 +01:00
|
|
|
- "1.13.x"
|
2018-08-02 00:37:21 +02:00
|
|
|
|
|
|
|
go_import_path: github.com/docker/distribution
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- python-minimal
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
- TRAVIS_GOOS=linux DOCKER_BUILDTAGS="include_oss include_gcs" TRAVIS_CGO_ENABLED=1
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- uname -r
|
|
|
|
- sudo apt-get -q update
|
|
|
|
|
|
|
|
install:
|
2020-01-29 15:53:03 +01:00
|
|
|
- cd /tmp && go get -u github.com/vbatts/git-validation
|
2018-08-02 00:37:21 +02:00
|
|
|
# TODO: Add enforcement of license
|
|
|
|
# - go get -u github.com/kunalkushwaha/ltag
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
|
|
|
|
script:
|
|
|
|
- export GOOS=$TRAVIS_GOOS
|
|
|
|
- export CGO_ENABLED=$TRAVIS_CGO_ENABLED
|
|
|
|
- DCO_VERBOSITY=-q script/validate/dco
|
2019-06-06 00:40:29 +02:00
|
|
|
- GOOS=linux GO111MODULE=off script/setup/install-dev-tools
|
2018-08-02 00:37:21 +02:00
|
|
|
- script/validate/vendor
|
|
|
|
- go build -i .
|
|
|
|
- make check
|
|
|
|
- make build
|
|
|
|
- make binaries
|
|
|
|
# Currently takes too long
|
|
|
|
#- if [ "$GOOS" = "linux" ]; then make test-race ; fi
|
|
|
|
- if [ "$GOOS" = "linux" ]; then make coverage ; fi
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash) -F linux
|
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
# Run tests with storage driver configurations
|