From 288acaab7517a4fb97680908e23208b7ab4a3e78 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Thu, 8 May 2014 15:32:48 +0530 Subject: [PATCH] Travis-ci set global varibale name --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a4ae6df..b2c041f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,21 @@ language: bash +env: + global: + - BRANCH_NAME=$TRAVIS_BRANCH + before_install: before_script: -- sudo apt-get -qq purge mysql* +- sudo apt-get purge mysql* script: # Specify Git Username/Password So Installation Script Don't Prompt For Input - sudo echo -e "[user]\n\tname = Mitesh Shah\n\temail = root@localhost" > ~/.gitconfig -- sudo echo "Travis Banch = $TRAVIS_BRANCH" -- (BRANCH_NAME=$TRAVIS_BRANCH; sudo bash install.sh) +- sudo echo "Travis Banch = $TRAVIS_BRANCH & EasyEngine BRANCH_NAME = $BRANCH_NAME" +- sudo bash install.sh - sudo sed -i "s/htpasswduser.*/htpasswduser = easyengine/" /etc/easyengine/ee.conf - sudo sed -i "s/htpasswdpass.*/htpasswdpass = easyengine/" /etc/easyengine/ee.conf