Skip to content

Commit

Permalink
Remove Deploy Stage from travis, because node-dht needs to be built o…
Browse files Browse the repository at this point in the history
…n a Raspberry
  • Loading branch information
UnchartedBull committed Jul 19, 2019
1 parent c3bd9fa commit 6906fbb
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 45 deletions.
88 changes: 44 additions & 44 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,47 +26,47 @@ jobs:
if: type = push AND branch = master
name: "Building Application ..."
script: npm run pack
- stage: deploy
if: type = push AND branch = master
name: "Deploying..."
script:
- |
git config --global user.email "[email protected]"
git config --global user.name "UnchartedBull"
git config --global push.default current
touch .git/credentials
echo "https://UnchartedBull:${GITHUB_TOKEN}@github.com" > .git/credentials
git config credential.helper "store --file=.git/credentials"
git checkout -- .
- gem install github_changelog_generator
- |
COMMIT=$(git log -1 --pretty=%B)
VERSION_BUMP="patch"
- |
if [ $COMMIT == *"[version major]"* ]; then VERSION_BUMP="major"; fi;
if [ $COMMIT == *"[version minor]"* ]; then VERSION_BUMP="minor"; fi;
- |
if [ $COMMIT == *"[release]"* ]; then
echo "received commit message - "$COMMIT
echo "bumping version ("$VERSION_BUMP")"
npm version $VERSION_BUMP -m "[skip ci] bump package version to v%s"
github_changelog_generator -t $GITHUB_TOKEN
git add -A CHANGELOG.md
git commit --amend --no-edit
git push origin HEAD:$TRAVIS_BRANCH
npm run pack
mv package/*armv7l.deb OctoDash_$(git describe --tags $(git rev-list --tags --max-count=1))_armv7l.deb
mv package/*arm64.deb OctoDash_$(git describe --tags $(git rev-list --tags --max-count=1))_arm64.deb
export TRAVIS_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
fi;
deploy:
provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
draft: true
on:
tags: true
file_glob: true
file:
- "OctoDash_*_armv7l.deb"
- "OctoDash_*_arm64.deb"
# - stage: deploy
# if: type = push AND branch = master
# name: "Deploying..."
# script:
# - |
# git config --global user.email "[email protected]"
# git config --global user.name "UnchartedBull"
# git config --global push.default current
# touch .git/credentials
# echo "https://UnchartedBull:${GITHUB_TOKEN}@github.com" > .git/credentials
# git config credential.helper "store --file=.git/credentials"
# git checkout -- .
# - gem install github_changelog_generator
# - |
# COMMIT=$(git log -1 --pretty=%B)
# VERSION_BUMP="patch"
# - |
# if [ $COMMIT == *"[version major]"* ]; then VERSION_BUMP="major"; fi;
# if [ $COMMIT == *"[version minor]"* ]; then VERSION_BUMP="minor"; fi;
# - |
# if [ $COMMIT == *"[release]"* ]; then
# echo "received commit message - "$COMMIT
# echo "bumping version ("$VERSION_BUMP")"
# npm version $VERSION_BUMP -m "[skip ci] bump package version to v%s"
# github_changelog_generator -t $GITHUB_TOKEN
# git add -A CHANGELOG.md
# git commit --amend --no-edit
# git push origin HEAD:$TRAVIS_BRANCH
# npm run pack
# mv package/*armv7l.deb OctoDash_$(git describe --tags $(git rev-list --tags --max-count=1))_armv7l.deb
# mv package/*arm64.deb OctoDash_$(git describe --tags $(git rev-list --tags --max-count=1))_arm64.deb
# export TRAVIS_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
# fi;
# deploy:
# provider: releases
# api_key: $GITHUB_TOKEN
# skip_cleanup: true
# draft: true
# on:
# tags: true
# file_glob: true
# file:
# - "OctoDash_*_armv7l.deb"
# - "OctoDash_*_arm64.deb"
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function queryTemperatureSensor() {
});
console.log(err);
}
setTimeout(queryTemperatureSensor, config.octoprint.apiInterval)
setTimeout(queryTemperatureSensor, 10000)
})
}

Expand Down

0 comments on commit 6906fbb

Please sign in to comment.