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

[jsk_tools] Add restart_travis function to do it from command line #1119

Merged
merged 2 commits into from
Sep 8, 2015

Conversation

wkentaro
Copy link
Member

@wkentaro wkentaro commented Sep 7, 2015

$ restart_travis jsk-ros-pkg/jsk_common 1258.2

@wkentaro wkentaro force-pushed the restart-travis-shell-func branch 3 times, most recently from 51179d1 to bd0b2ae Compare September 7, 2015 15:36
@wkentaro
Copy link
Member Author

wkentaro commented Sep 7, 2015

@eisoku9618 @snozawa
良ければ使ってみてください.

@wkentaro wkentaro changed the title [jsk_tools] Add restart_travis function [jsk_tools] Add restart_travis function to do it from command line Sep 7, 2015
@wkentaro
Copy link
Member Author

wkentaro commented Sep 7, 2015

$ sudo gem install travis -v 1.8.0 --no-rdoc --no-ri
$ travis show -r jsk-ros-pkg/jsk_common

でステータスが見れます.(常識なのかもですが,僕は最近知ったので)

@snozawa
Copy link
Contributor

snozawa commented Sep 7, 2015

ありがとう!

@garaemon
Copy link
Member

garaemon commented Sep 7, 2015

travisコマンドだと、logs, watchあたりが便利です

echo "Please set SLACK_TOKEN (see: https://api.slack.com/web)"
return 1
fi
if [ -z $SLACK_USERNAME ]; then
Copy link
Member

Choose a reason for hiding this comment

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

Is SLACK_USERNAME required?

Copy link
Member Author

Choose a reason for hiding this comment

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

screen shot 2015-09-08 at 1 08 43 am

The restart does not respond to the msg of bot. I think this is because bot is not the member of travis channel.
image

Copy link
Member Author

Choose a reason for hiding this comment

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

and no way to add bot to the channel.

Copy link
Member Author

Choose a reason for hiding this comment

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

あ.でも確かに

$ echo hogehoge | slacker -c travis -a 1

でいいですね

Copy link
Member Author

Choose a reason for hiding this comment

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

直しました.

@wkentaro
Copy link
Member Author

wkentaro commented Sep 7, 2015

確かにlogsは便利ですね.
watchはありますか?

% travis watch
unknown command watch

monitorだったりしますか?

@garaemon
Copy link
Member

garaemon commented Sep 7, 2015

monitorでした

@eisoku9618
Copy link
Contributor

できました!

sudo gem install travis -v 1.8.0 --no-rdoc --no-ri
sudo pip install slacker-cli
export SLACK_TOKEN=hogehoge
restart_travis fkanehiro/hrpsys-base 576
travis show -r fkanehiro/hrpsys-base 576

@wkentaro
Copy link
Member Author

wkentaro commented Sep 7, 2015

monitorは初めて使いましたが,走らせておくと便利ですね.

@wkentaro wkentaro force-pushed the restart-travis-shell-func branch from bd0b2ae to 4299861 Compare September 7, 2015 16:56
@wkentaro wkentaro force-pushed the restart-travis-shell-func branch from 4299861 to 99bf55c Compare September 8, 2015 03:50
@wkentaro
Copy link
Member Author

wkentaro commented Sep 8, 2015

slacker-cli 0.2.2 から --as-userで良くなりました.

@wkentaro
Copy link
Member Author

wkentaro commented Sep 8, 2015

@eisoku9618 ありがとうございます.SLACK_USERNAMEは必要無くなりました.

garaemon added a commit that referenced this pull request Sep 8, 2015
[jsk_tools] Add restart_travis function to do it from command line
@garaemon garaemon merged commit b44c72e into jsk-ros-pkg:master Sep 8, 2015
@wkentaro wkentaro deleted the restart-travis-shell-func branch September 8, 2015 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants