forked from openfaas/faas-netes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (39 loc) · 1.18 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
sudo: required
language: go
go:
- 1.9.x
env:
global:
- HELM_URL=https://storage.googleapis.com/kubernetes-helm
- HELM_TAR=helm-v2.4.1-linux-amd64.tar.gz
install:
- wget -q ${HELM_URL}/${HELM_TAR}
- tar xzfv ${HELM_TAR}
- PATH=`pwd`/linux-amd64/:$PATH
- helm init --client-only
services:
- docker
before_script:
- bash contrib/set_travis_experimental_mode.sh
- curl -sSL get.docker.com | sudo -E sh
script:
- make build
- >
for chart in `ls ./chart`; do
helm lint ./chart/${chart}
if [ $? != 0 ]; then
travis_terminate 1
fi
done
after_success:
- if [ -z $DOCKER_NS ] ; then
export DOCKER_NS=openfaas;
fi
- if [ ! -z "$TRAVIS_TAG" ] ; then
docker tag $DOCKER_NS/faas-netes:latest $DOCKER_NS/faas-netes:$TRAVIS_TAG;
echo $DOCKER_PASSWORD | docker login -u=$DOCKER_USERNAME --password-stdin;
docker push $DOCKER_NS/faas-netes:$TRAVIS_TAG;
docker tag $DOCKER_NS/faas-netes:latest quay.io/$DOCKER_NS/faas-netes:$TRAVIS_TAG;
echo $QUAY_PASSWORD | docker login -u=$QUAY_USERNAME --password-stdin quay.io;
docker push quay.io/$DOCKER_NS/faas-netes:$TRAVIS_TAG;
fi