From 30ec8ec30580b8a0993cc9c4f7fbb0e3ff76c0b6 Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Tue, 4 Jul 2017 23:31:23 -0400 Subject: [PATCH] CI: change the user to common user --- .travis.yml | 3 ++- travis.pl | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b0ea8fb8d..a04874d6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,8 @@ script: - echo $GITHUB_TOKEN - git log --pretty=format:"%s %b" -2 -- perl travis.pl +#- perl travis.pl +- if [ $TRAVIS_EVENT_TYPE == "pull_request" ]; then perl ./travis.pl; fi diff --git a/travis.pl b/travis.pl index 4c827769a..7ca5563fe 100644 --- a/travis.pl +++ b/travis.pl @@ -157,8 +157,8 @@ sub send_back_comment{ } print "[send_back_comment] method = $post_method to $post_url \n"; - #`curl -u "$ENV{'USERNAME'}:$ENV{'PASSWORD'}" -X $post_method -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`; - `curl -u "denfshuaishuai\@icloud.com:ds18811031107" -X $post_method -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`; + `curl -u "$ENV{'USERNAME'}:$ENV{'PASSWORD'}" -X $post_method -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`; + # `curl -u "denfshuaishuai\@icloud.com:ds18811031107" -X $post_method -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`; } #--------------------------------------------------------