File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ install:
20
20
21
21
script :
22
22
- chmod ugo+x ./url.sh ./build-c-new.sh
23
- - ./build-c-new.sh
23
+ # - ./build-c-new.sh
24
24
- ./url.sh
25
25
- popd
26
26
after_script :
Original file line number Diff line number Diff line change 4
4
namefolder=${name: 14} ;
5
5
6
6
function create_dest_directory ()
7
- {
8
- pwd :
9
- ls :
7
+ {
8
+
10
9
cd builds ;
11
10
if [ -n " ${TRAVIS_TAG} " ]; then
12
11
destFolder=" $namefolder -${TRAVIS_TAG} "
Original file line number Diff line number Diff line change 60
60
# checking if url contains http or not
61
61
if [[ " $provider_url " =~ $regex ]] ; then
62
62
path_url=$provider_url ;
63
+ if [[ ! $provider_url == * [.git] ]] ; then
64
+ path_url=$path_url .git ;
65
+ fi
63
66
fname=$( echo $path_url | rev | cut -d ' /' -f 1 | rev) ;
67
+ fname=$( echo $fname | cut -f1 -d ' .' ) ;
64
68
echo $fname
65
69
pushd $GOPATH /src/github.com/TIBCOSoftware ;
66
- git clone $provider_url .git " $fname " ;
70
+ git clone $path_url " $fname " ;
67
71
popd ;
68
72
# publish_gateway ;
69
73
publish=$( cat $GOPATH /src/github.com/TIBCOSoftware/mashling-recipes/recipe_registry.json | jq $xpath_publish ) ;
75
79
echo " ${Gateway[$x]} " ;
76
80
mashling create -f $GOPATH /src/github.com/TIBCOSoftware/" $fname " /" ${Gateway[$x]} " /" ${Gateway[$x]} " .json " ${Gateway[$x]} " ;
77
81
package_gateway ;
78
- done
79
-
82
+ done
83
+
80
84
else
81
85
echo " alert 3" ;
82
86
publish=$( cat $GOPATH /src/github.com/TIBCOSoftware/mashling-recipes/recipe_registry.json | jq $xpath_publish ) ;
You can’t perform that action at this time.
0 commit comments