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

Auto-update choco packages on new release. #1406

Merged
merged 1 commit into from
Jun 20, 2018
Merged
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ addons:
- doxygen-latex
- doxygen-gui
- graphviz
- xmlstarlet
install:
- if [ "$SDK_VERSION" == "1.5.0" ] && [ "$TRAVIS_OS_NAME" == "osx" ]; then export
SDK_FILE_NAME="esp-alt-sdk-v${SDK_VERSION}.${SDK_BUILD}-macos-x86_64.zip"; fi
Expand Down
16 changes: 15 additions & 1 deletion .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,21 @@ DOCS_DIR=$SMING_HOME/../api

rm -rf $DOCS_DIR
cp -r $SMING_HOME/../docs/api/sming/ $DOCS_DIR
git add -A $DOCS_DIR
git add -A $DOCS_DIR
git commit -m "Updated the API docs to version $TAG." || 1

git push https://${SMING_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages

# Update the Choco packages
cd /tmp
git clone https://github.com/slaff/chocolatey-packages.git
cd chocolatey-packages
FILES_TO_CHANGE="packages/sming/sming.nuspec packages/sming.upgrade/sming.upgrade.nuspec packages/sming.examples/sming.examples.nuspec packages/sming.core/sming.core.nuspec"

for FILE in $FILES_TO_CHANGE;
do
xmlstarlet ed --inplace -N "ns=http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" -u "/ns:package/ns:metadata/ns:version" -v "$TAG" $FILE;
done

git commit -m "Updated chocolatey packages to latest stable $TAG version." || 1
git push https://${SMING_TOKEN}@github.com/slaff/chocolatey-packages.git master