Skip to content

Commit 825c4a7

Browse files
author
Tim Etchells
committed
More travis changes
1 parent aff15fd commit 825c4a7

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

publish.sh

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,30 @@
22

33
# To be run from the repository root directory
44

5-
set -ex
5+
#if [[ "$TRAVIS_EVENT_TYPE" != "cron" ]]; then
6+
# echo "Not a cron build; not publishing"
7+
# exit 1
8+
#fi
69

7-
if [[ "$TRAVIS_EVENT_TYPE" != "cron" ]]; then
8-
echo "Not a cron build; not publishing"
9-
exit 1
10-
fi
10+
set -ex
1111

12-
cp "dev/*.vsix" .
12+
cp -v dev/*.vsix .
1313

1414
git_repo_url="https://github.ibm.com/dev-ex/microclimate-vscode"
1515
build_info_file="build_info.txt"
16-
17-
1816
artifact_name="$(basename *.vsix)"
19-
echo "The build artifact is $artifact_name"
17+
build_date="$(date +'%F_%H-%M_%Z')"
18+
19+
# OSS Remove Start
2020

21-
build_date="$(date +'%F %H:%M %Z')"
2221
commit_info="$(git log master -3 --pretty='%h by %an - %s')"
23-
echo "$commit_info"
2422

2523
# Artifactory upload - Remove this at OSS time
2624
printf "$build_date\n$commit_info" > "$build_info_file"
2725
curl -u "$artifactory_username:$artifactory_apikey" "$artifactory_url/$artifact_name" -T "$artifact_name" -X PUT
2826
curl -u "$artifactory_username:$artifactory_apikey" "$artifactory_url/$build_info_file" -T "$build_info_file" -X PUT
2927

30-
echo "dumb stuff";
31-
ls -l /usr/bin/python*
32-
ls -l /bin/python*
33-
echo "done dumb stuff";
28+
# OSS Remove End
3429

3530
# https://developer.github.com/v3/repos/releases/#create-a-release
3631
gh_payload_builder="import json; payload={};
@@ -39,6 +34,7 @@ gh_payload_builder="import json; payload={};
3934
payload['prerelease'] = true;
4035
print json.dumps(payload);
4136
"
42-
gh_tag_payload="$(python2 -c $gh_payload_builder)"
37+
38+
gh_tag_payload="$(python2 -c \s"$gh_payload_builder\")"
4339
echo "$gh_tag_payload"
4440

0 commit comments

Comments
 (0)