Commit 8a10e63106739978c04605d2811956e5f54e37f5

Authored by Guilherme Espada
1 parent 3df611a3c9

Fix PPA checking

Showing 2 changed files with 9 additions and 4 deletions Inline Diff

File was created 1 #! /bin/sh
2 if [ $PPA != 'none' ];then
3 sudo apt-add-repository -y $PPA;
4 sudo apt-get update -qq;
5 fi
6
1 # Using python for running the tests, using `cram` test framework. 1 # Using python for running the tests, using `cram` test framework.
2 language: python 2 language: python
3 3
4 # Python version to run tests with. 4 # Python version to run tests with.
5 python: 5 python:
6 - "2.7" 6 - "2.7"
7 7
8 before_script: 8 before_script:
9 9
10 # Show the git version being used to test. 10 # Show the git version being used to test.
11 - "git --version" 11 - "git --version"
12 12
13 # Show the zsh version being used to test. 13 # Show the zsh version being used to test.
14 - "zsh --version" 14 - "zsh --version"
15 15
16 # Test config for git. 16 # Test config for git.
17 - "git config --global user.name test" 17 - "git config --global user.name test"
18 - "git config --global user.email test@test.test" 18 - "git config --global user.email test@test.test"
19 19
20 install: 20 install:
21 # Add PPA if needed
22 - "./.travis-ci.sh"
21 # Install python requirements. 23 # Install python requirements.
22 - "pip install -r requirements.txt --use-mirrors" 24 - "pip install -r requirements.txt --use-mirrors"
23 # Install zsh. 25 # Install zsh.
24 - "sudo apt-get install zsh" 26 - "sudo apt-get install zsh"
25 # Add PPA if needed
26 - 'if [ "$PPA" != "none" ]; then sudo apt-add-repository -y "$PPA"; sudo apt-get update -qq; fi'
27 27
28 # Run the tests. 28 # Run the tests.
29 script: "make tests" 29 script: "make tests"
30 30
31 env: 31 env:
32 # Default zsh 32 # Default zsh
33 - PPA = "none" 33 - PPA="none"
34 # zsh 5 PPA 34 # zsh 5 PPA