forked from IBM/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (25 loc) · 859 Bytes
/
.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
---
sudo: required
language: generic
dist: xenial
# safelist
branches:
only:
- travisbuild
- master
env:
- OCTOKIT_API_ENDPOINT="https://github.com/"
before_install:
- echo "before install"
install:
# Package for release
- echo "In Install path"
- env | egrep "TRAVIS|MASTER"
# The process will be very limited, and will look for commits
- if [[ ! "$TRAVIS_COMMIT_MESSAGE" = *"from IBM/ibm-source-master"* ]] && [[ "$TRAVIS_PULL_REQUEST" = "false" ]] && [[ "$TRAVIS_BRANCH" = "$MASTER_BRANCH" ]] && [[ "$TRAVIS_EVENT_TYPE" = "push" ]] && [[ "$TRAVIS_REPO_SLUG" = "IBM/charts" ]];
then
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash;
helm init --client-only;
.build/bin/diffIndex.sh;
else echo "This is a PR, or commit on non-master, no index build";
fi