diff --git a/.travis-ci.sh b/.travis-ci.sh new file mode 100755 index 0000000..bc34d70 --- /dev/null +++ b/.travis-ci.sh @@ -0,0 +1,5 @@ +#! /bin/sh +if [ $PPA != 'none' ];then + sudo apt-add-repository -y $PPA; + sudo apt-get update -qq; +fi diff --git a/.travis.yml b/.travis.yml index eb943ac..c04d9f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,18 +18,18 @@ before_script: - "git config --global user.email test@test.test" install: + # Add PPA if needed + - "./.travis-ci.sh" # Install python requirements. - "pip install -r requirements.txt --use-mirrors" # Install zsh. - "sudo apt-get install zsh" - # Add PPA if needed - - 'if [ "$PPA" != "none" ]; then sudo apt-add-repository -y "$PPA"; sudo apt-get update -qq; fi' # Run the tests. script: "make tests" env: # Default zsh - - PPA = "none" + - PPA="none" # zsh 5 PPA - - PPA = "ppa:brainpower/testing" + - PPA="ppa:brainpower/testing"