Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Use fixed version of go-duktape (#2761)
Browse files Browse the repository at this point in the history
* Update to fixed version of go-duktape

Signed-off-by: Simon Stone <[email protected]>

* Ensure build uses right version of go-duktape

Signed-off-by: Simon Stone <[email protected]>

* Remove broken git diff code

Signed-off-by: Simon Stone <[email protected]>
  • Loading branch information
Simon Stone authored and nklincoln committed Nov 18, 2017
1 parent 2824617 commit 79e7749
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 56 deletions.
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "packages/composer-runtime-hlfv1/vendor/gopkg.in/olebedev/go-duktape.v3"]
path = packages/composer-runtime-hlfv1/vendor/gopkg.in/olebedev/go-duktape.v3
url = https://gopkg.in/olebedev/go-duktape.v3.git
url = https://gopkg.in/sstone1/go-duktape.v3.git
branch = v3
65 changes: 11 additions & 54 deletions .travis/before-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
set -ev
set -o pipefail

# Grab the parent (root) directory.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"

# Ensure we're using the correct fork of go-duktape.
pushd "${DIR}/packages/composer-runtime-hlfv1/vendor/gopkg.in/olebedev/go-duktape.v3"
if ! git remote -v | grep sstone1 > /dev/null; then
echo Using the wrong version of go-duktape: refusing to run the build
exit 1
fi
popd

# Remove the MongoDB repo as their GPG key has expired.
sudo rm /etc/apt/sources.list.d/mongodb-3.2.list
# Remove Riak https://github.com/travis-ci/travis-ci/issues/8607
Expand All @@ -15,9 +26,6 @@ sudo rm -vf /etc/apt/sources.list.d/*riak*
pip install --user linkchecker requests==2.9.2
linkchecker --version

# Grab the parent (root) directory.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"

npm install -g lerna@2 @alrra/travis-scripts asciify gnomon

echo "ABORT_BUILD=false" > ${DIR}/build.cfg
Expand All @@ -40,57 +48,6 @@ echo "->- Build cfg being used"
cat ${DIR}/build.cfg
echo "-<-"


######
# checking the changes that are in this file
echo "Travis commit range $TRAVIS_COMMIT_RANGE"
echo "Travis commit $TRAVIS_COMMIT"
echo "Travis event type $TRAVIS_EVENT_TYPE"


if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
else
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
fi


cd $TRAVIS_BUILD_DIR
touch changefiles.log
git diff --name-only $(echo $TRAVIS_COMMIT_RANGE | sed 's/\.//')

if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
git show --pretty=format: --name-only "$TRAVIS_COMMIT_RANGE"|sort|uniq >> changedfiles.log || echo Fail
elif [ -n "$TRAVIS_PULL_REQUEST" ]; then
git diff --name-only "$TRAVIS_COMMIT" "$TRAVIS_BRANCH" >> changedfiles.log || echo Fail
fi

RESULT=$(cat changedfiles.log | sed '/^\s*$/d' | awk '!/composer-website/ { print "MORE" }')
if [ "${RESULT}" == "" ] && [ "$TRAVIS_TAG" == "" ];
then

# Check of the task current executing
if [ "${FC_TASK}" != "docs" ]; then
# echo "ABORT_BUILD=true" > ${DIR}/build.cfg
# echo "ABORT_CODE=0" >> ${DIR}/build.cfg
echo 'Docs only build'
# exit 0
fi

else
echo "More than docs changes"
fi
rm changedfiles.log
cd - > /dev/null
######




# Check of the task current executing
if [ "${FC_TASK}" = "docs" ]; then
echo Doing Docs - no requirement for installations of other software
Expand Down
Submodule go-duktape.v3 updated from 328328 to 067e9a

0 comments on commit 79e7749

Please sign in to comment.