forked from kubeshop/botkube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1.35 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: go
go:
- '1.13'
services:
- docker
env:
- GO111MODULE=on
install:
- go get -u golang.org/x/lint/golint
- curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
- chmod +x get_helm.sh
- ./get_helm.sh
before_script:
- hack/verify-gofmt.sh
- hack/verify-govet.sh
- hack/verify-golint.sh
- go mod verify
- helm lint helm/botkube
script:
- make test
- make
- make container-image
after_success:
- |
if [[ "$TRAVIS_BRANCH" == "develop" ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
docker push infracloudio/botkube:latest
fi
- |
if [[ "$TRAVIS_BRANCH" == "develop" ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
cd ..
git config --global user.email "botkube-ci@infracloud.io"
git config --global user.name "BotKube CI"
git clone https://github.com/infracloudio/charts.git
cd charts
git fetch
git branch
git pull origin gh-pages
helm package --app-version v9.99.9-dev --version v9.99.9-dev ${TRAVIS_BUILD_DIR}/helm/botkube/
helm repo index --url https://infracloudio.github.io/charts --merge index.yaml .
git add .
git commit -m "Update BotKube latest helm chart"
git push https://${GH_TOKEN}@github.com/infracloudio/charts.git
fi