Skip to content

Commit

Permalink
Merge pull request #7 from rchincha/master
Browse files Browse the repository at this point in the history
some cleanup
  • Loading branch information
rchamarthy authored Jun 26, 2019
2 parents a975cb0 + c142daf commit 5296887
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@ matrix:
notifications:
email: false

cache:
directories:
- $HOME/.bzrepos
- $HOME/.cache/bazel

install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget -N https://github.com/bazelbuild/bazel/releases/download/0.26.1/bazel-0.26.1-installer-linux-x86_64.sh && chmod +x bazel-0.26.1-installer-linux-x86_64.sh && ./bazel-0.26.1-installer-linux-x86_64.sh --user; go get -u github.com/swaggo/swag/cmd/swag; go mod download; fi

script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make && make -f Makefile.bazel build; fi

after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ debug: doc

.PHONY: test
test:
go test -v -race -cover ./pkg/... ./cmd/...
go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic ./...

./bin/golangci-lint:
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.17.1
Expand Down
8 changes: 6 additions & 2 deletions Makefile.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
OS := $(shell uname -s | tr A-Z a-z)
BINARY_PREFIX_DIRECTORY := $(OS)_amd64_stripped
BAZEL=$(HOME)/bin/bazel
BAZELOPTS= --repository_cache="$$HOME/.bzrepos" \
--test_output=errors \
--noshow_progress \
--noshow_loading_progress

.PHONY: all
all: build check
Expand Down Expand Up @@ -31,8 +35,8 @@ init: setup-base update-bazel fmt-bazel

.PHONY: build
build:
${BAZEL} build //...
${BAZEL} test //...
${BAZEL} build ${BAZELOPTS} //...
${BAZEL} test ${BAZELOPTS} //...

.PHONY: check
check:
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# zot [![Build Status](https://travis-ci.org/anuvu/zot.svg?branch=master)](https://travis-ci.org/anuvu/zot)
# zot [![Build Status](https://travis-ci.org/anuvu/zot.svg?branch=master)](https://travis-ci.org/anuvu/zot) [![codecov.io](http://codecov.io/github/anuvu/zot/coverage.svg?branch=master)](http://codecov.io/github/anuvu/zot?branch=master)

**zot** is a single-purpose OCI image repository server based on the
[OCI distribution spec](https://github.com/opencontainers/distribution-spec).
Expand All @@ -8,3 +8,9 @@
* TLS support
* *Basic* and TLS mutual authentication
* Swagger based documentation

# Caveats

* go 1.12+
* Image name consists of only one path component, for example, _busybox:latest_ instead _ubuntu/busybox:latest_
* The OCI distribution spec is still WIP, and we try to keep up

0 comments on commit 5296887

Please sign in to comment.