forked from cloudfoundry/stratos
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v2-master' into fixAsync
- Loading branch information
Showing
162 changed files
with
4,291 additions
and
736 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
echo "=============================" | ||
echo "Generate Dep Cache for Travis" | ||
echo "=============================" | ||
|
||
# Install go and dep | ||
apt-get update | ||
apt-get install -y curl | ||
apt-get install -y git | ||
curl -sL -o ./gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | ||
chmod +x ./gimme | ||
eval "$(./gimme 1.9.7)" | ||
mkdir -p /root/go/bin | ||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | ||
export PATH=/root/go/bin:$PATH | ||
export DEPPROJECTROOT=./stratos | ||
cd /stratos | ||
dep ensure -v --vendor-only | ||
|
||
SUM=$(cat Gopkg.toml Gopkg.lock | md5sum | awk '{ print $1 }') | ||
tar -czf travis-vendor-${SUM}.tgz ./vendor | ||
echo $SUM | ||
echo "Completed" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Download the go dep cache if configured | ||
DIRPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd ../../.. && pwd)" | ||
GODEPCACHEURL=${STRATOS_GODEP_CACHE:false} | ||
|
||
unamestr=`uname` | ||
|
||
if [ "${GODEPCACHEURL}" != "false" ]; then | ||
pushd "$DIRPATH" > /dev/null | ||
if [ "$unamestr" == "Darwin" ]; then | ||
CACHEMD5=$(cat Gopkg.toml Gopkg.lock | md5 -q) | ||
else | ||
CACHEMD5=$(cat Gopkg.toml Gopkg.lock | md5sum | awk '{ print $1 }') | ||
fi | ||
popd > /dev/null | ||
DEPFILE="travis-vendor-${CACHEMD5}.tgz" | ||
echo "Looking for vendor cache file : $DEPFILE" | ||
set +e | ||
|
||
echo "${GODEPCACHEURL}/${DEPFILE}" | ||
curl -L -s -f "${GODEPCACHEURL}/${DEPFILE}" -o depcache.tgz | ||
if [ $? -eq 0 ]; then | ||
echo "Unpacking depcache" | ||
tar -xvf depcache.tgz -C "${DIRPATH}" > /dev/null | ||
else | ||
echo "Could not find vendor cache to download" | ||
fi | ||
set -e | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# Create a vendor cache package for use in Travis | ||
|
||
DIRPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd ../../.. && pwd)" | ||
|
||
echo $DIRPATH | ||
docker run -v ${DIRPATH}:/stratos ubuntu:trusty /stratos/deploy/ci/travis/depcache.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.