Commit 2d407120fb8d92ffbe24903ff825c5531bb5ed09
Merge pull request #61 from GUIpsp/patch-1
Add zsh 5 to the Travis-CI build matrix.
Showing 2 changed files Inline Diff
.travis.yml
| 1 | # Using python for running the tests, using `cram` test framework. | 1 | # Using python for running the tests, using the `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 | env: | ||
| 9 | # Default zsh | ||
| 10 | - PPA="none" | ||
| 11 | # zsh 5 PPA | ||
| 12 | - PPA="ppa:brainpower/testing" | ||
| 13 | |||
| 8 | before_script: | 14 | before_script: |
| 9 | 15 | ||
| 10 | # Show the git version being used to test. | 16 | # Show the git version being used to test. |
| 11 | - "git --version" | 17 | - "git --version" |
| 12 | 18 | ||
| 13 | # Install zsh. | 19 | # Show the zsh version being used to test. |
| 14 | - "sudo apt-get install zsh" | 20 | - "zsh --version" |
| 15 | 21 | ||
| 16 | # Test config for git. | 22 | # Test config for git. |
| 17 | - "git config --global user.name test" | 23 | - "git config --global user.name test" |
| 18 | - "git config --global user.email test@test.test" | 24 | - "git config --global user.email test@test.test" |
| 19 | 25 | ||
| 20 | # Install python requirements. | 26 | install: |
| 21 | install: "pip install -r requirements.txt --use-mirrors" | 27 | # Add PPA if needed |
| 28 | - "./travis-ppa.sh" | ||
| 29 | # Install python requirements. | ||
| 30 | - "pip install -r requirements.txt --use-mirrors" | ||
| 31 | # Install zsh. | ||
| 32 | - "sudo apt-get install zsh" | ||
| 22 | 33 | ||
| 23 | # Run the tests. | 34 | # Run the tests. |
| 24 | script: "make tests" | 35 | script: "make tests" |
| 25 | 36 |
travis-ppa.sh
| 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 |