forked from RedHatInsights/insights-chrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom_release.sh
executable file
·46 lines (41 loc) · 926 Bytes
/
custom_release.sh
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
#!/bin/bash
set -e
set -x
# push to ci and qa when master merges
if [ "${TRAVIS_BRANCH}" = "master" ]; then
for env in ci qa
do
echo
echo
echo "PUSHING ${env}-beta"
rm -rf ./build/.git
.travis/release.sh "${env}-beta"
done
echo
echo
echo "PUSHING dev-build"
rm -rf ./build/.git
.travis/release.sh "dev-beta"
fi
if [ "${TRAVIS_BRANCH}" = "master-stable" ]; then
for env in ci qa
do
echo
echo
echo "PUSHING ${env}-beta"
rm -rf ./build/.git
.travis/release.sh "${env}-stable"
done
echo
echo
echo "PUSHING dev-build"
rm -rf ./build/.git
.travis/release.sh "dev-stable"
fi
if [[ "${TRAVIS_BRANCH}" = "prod-beta" || "${TRAVIS_BRANCH}" = "prod-stable" ]]; then
echo
echo
echo "PUSHING ${TRAVIS_BRANCH}"
rm -rf ./build/.git
.travis/release.sh "${TRAVIS_BRANCH}"
fi