-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
49 lines (43 loc) · 1.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: python
# Note PYVER drives hack to use python 2.4, this is
# actually pretty ugly on travis -- process is:
# 1) install # python2.4 from deadsnakes ppa
# 2) shove 2.4 in /usr/bin/python
# 3) set PATH back to /usr/bin
#
# This removes the system python link which is probably not
# smart, but the test works so leaving it for now.
#
matrix:
include:
- os: linux
sudo: required
python: "2.7"
- os: linux
sudo: required
python: "2.6"
- os: linux
sudo: required
python: "2.7"
env: PYVER="2.4"
before_install:
- date -u
- uname -a
- lsb_release -a
- if [ "$PYVER" == "2.4" ]; then sudo add-apt-repository -y ppa:fkrull/deadsnakes && sudo apt-get update -qq; fi
install:
- if [ "$PYVER" == "2.4" ]; then sudo apt-get install python2.4 -y && python2.4 -V; fi
- if [ "$PYVER" == "2.4" ]; then sudo rm -f /usr/bin/python && sudo ln -s /usr/bin/python2.4 /usr/bin/python; fi
- if [ "$PYVER" == "2.4" ]; then export PATH=/usr/bin:$PATH; fi
- python -V
script:
- cd scratch/test && bash ./test_release_tarball.bash -nosge
branches:
only:
- master
- travis
- /v\d\.\d\.\d/
notifications:
email:
recipients: