Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added sublime_lib dependency. #157

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dependencies.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"*": {
">3000": [
"coverage"
"*": [
"coverage",
"sublime_lib"
]
}
}
18 changes: 18 additions & 0 deletions sbin/circleci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,24 @@ Bootstrap() {
echo
fi

SUBLIME_LIB_PATH="$STP/coverage"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path should $STP/sublime_lib

if [ "$SUBLIME_TEXT_VERSION" -eq 3 ] && [ ! -d "$SUBLIME_LIB_PATH" ]; then

SUBLIME_LIB_URL="https://github.com/SublimeText/sublime_lib"

if [ -z $SUBLIME_LIB_TAG ]; then
# latest tag
SUBLIME_LIB_TAG=$(git ls-remote --tags "$SUBLIME_LIB_URL" |
sed 's|.*/\(.*\)$|\1|' | grep -v '\^' |
sort -t. -k1,1nr -k2,2nr -k3,3nr | head -n1)
fi

echo "download sublime-coverage tag: $SUBLIME_LIB_TAG"
git clone --quiet --depth 1 --branch $SUBLIME_LIB_TAG "$SUBLIME_LIB_URL" "$SUBLIME_LIB_PATH"
git -C "$SUBLIME_LIB_PATH" rev-parse HEAD
echo
fi

sh "$STP/UnitTesting/sbin/install_sublime_text.sh"
}

Expand Down
18 changes: 18 additions & 0 deletions sbin/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,24 @@ Bootstrap() {
echo
fi

SUBLIME_LIB_PATH="$STP/coverage"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

if [ "$SUBLIME_TEXT_VERSION" -eq 3 ] && [ ! -d "$SUBLIME_LIB_PATH" ]; then

SUBLIME_LIB_URL="https://github.com/SublimeText/sublime_lib"

if [ -z $SUBLIME_LIB_TAG ]; then
# latest tag
SUBLIME_LIB_TAG=$(git ls-remote --tags "$SUBLIME_LIB_URL" |
sed 's|.*/\(.*\)$|\1|' | grep -v '\^' |
sort -t. -k1,1nr -k2,2nr -k3,3nr | head -n1)
fi

echo "download sublime-coverage tag: $SUBLIME_LIB_TAG"
git clone --quiet --depth 1 --branch $SUBLIME_LIB_TAG "$SUBLIME_LIB_URL" "$SUBLIME_LIB_PATH"
git -C "$SUBLIME_LIB_PATH" rev-parse HEAD
echo
fi

sh "$STP/UnitTesting/sbin/install_sublime_text.sh"
}

Expand Down