Files
athens/.travis.yml
Carolyn Van Slyck d379c20f44 Publish charts to azure storage (#1097)
* Add chart-push target and script

* Rename chart dir to match helm standards
2019-03-01 15:08:30 -08:00

45 lines
1.0 KiB
YAML

services:
- docker
language: go
install: false
go:
- "1.12.x"
env:
global:
- PATH=${PATH}:./bin
- GO_ENV=test
- ATHENS_MONGO_STORAGE_URL=mongodb://127.0.0.1:27017
- ATHENS_MINIO_ENDPOINT=127.0.0.1:9001
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio123
- CODE_COV=1
- ATHENS_DIR=${GOPATH}/src/github.com/gomods/athens
- REGISTRY=gomods/
- CHARTS_REPO=https://athens.blob.core.windows.net
- GORELEASER_ON=1
- GO111MODULE=on
before_script:
- mkdir -p $ATHENS_DIR && rsync -azr . $ATHENS_DIR && cd $ATHENS_DIR
- make setup-dev-env
script:
- make verify test-unit test-e2e docker
after_success:
- if [ "${CODE_COV}" == "1" ]; then
curl -s https://codecov.io/bash -o codecov && bash codecov -X fix;
else
echo codecov not enabled;
fi
before_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
deploy:
- provider: script
script: make docker-push charts-push
on:
repo: gomods/athens
all_branches: true