forked from IBM/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (34 loc) · 1.13 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
---
sudo: required
language: generic
dist: bionic
# 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 -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get -o get;
chmod +x get;
./get --version v2.17.0;
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