forked from IBM/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (32 loc) · 1.08 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
---
sudo: required
language: generic
dist: xenial
# safelist
branches:
only:
- travisbuild
- master
- /^tgz_merge_request.*20\d\d$/
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|Update index with tgz) ]] && [[ "$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
if [[ "$TRAVIS_REPO_SLUG" = "IBMPrivateCloud/charts" ]] && [[ "$TRAVIS_EVENT_TYPE" = "push" ]] ;
then
.build/bin/pushGit.sh;
else
echo "This is a PR, or commit on non-master, no index build";
fi
fi