-
Notifications
You must be signed in to change notification settings - Fork 49
/
.travis-pri.yml
47 lines (42 loc) · 1.55 KB
/
.travis-pri.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
---
dist: xenial
sudo: required
group: bluezone
language: generic
# Environment variables (setup endpoint to IBM github)
env:
global:
- OCTOKIT_API_ENDPOINT="https://github.ibm.com/api/v3/"
before_install:
# Clone build tools & set tools path for follow on processing
# The clone command will use the ssh key from the travis settings to clone the repo from github.ibm.com
- if [[ ! -z "$BRANCH_OVERRIDE" ]] ; then
git clone -b $BRANCH_OVERRIDE [email protected]:ibmprivatecloud/content-tools;
else
git clone [email protected]:ibmprivatecloud/content-tools;
fi
- export toolsPath=`pwd`/content-tools/travis-tools/
# Install dependencies & determine chart delta
- $toolsPath/build/bin/installDependencies.sh
- export changeList=`$toolsPath/build/bin/determineChartDelta.sh | tee determineChartDelta.out | grep 'return determineChartDelta:' | cut -f2 -d:` && cat determineChartDelta.out
install:
# Package for release
- if [[ ! -z "$TRAVIS_TAG" ]] ; then $toolsPath/release/bin/package.sh; fi
# Lint and install/test charts (if cv-tests exist)
- $toolsPath/cv-test/bin/validateContent.sh
script: echo "Override default script"
deploy:
# scp helm repo(s) to location identified (Note: SSHPASS env variable must contain password)
- provider: script
skip_cleanup: true
script: $toolsPath/build/bin/deployHelmRepo.sh
on:
all_branches: true
# Publish tagged release
- provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
file_glob: true
file: repo/stable/*
on:
tags: true