-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
96 lines (89 loc) · 3.84 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Travis integration file.
# Seattle supports Python 2.6 through 2.7, per
# github.com/SeattleTestbed/docs/blob/master/Contributing/BuildInstructions.md
# Python 2.5 is included for testing because this is what PlanetLab runs
#
# Travis provides OS X and Linux (specifically Ubuntu) OS instances.
# The result of this configuration will be five separate builds on
# Travis-CI VMs, 3 python versions on Linux and 2 on OS X.
# Primarily because of some manual fiddling to get python 2.5 tests
# to work, we require the following directive - we need
# non-container-based infrastructure so that Travis allows us to use
# sudo.
sudo: required
matrix:
include:
# Linux Instances follow, one for each dash.
- language: python # Language to initiate linux VM
python: '2.7' # Version of python to use
os: linux # The OS of the VM
env: Python='2.7' PythonBin="python" # These are environment variables we'll use.
# In particular, PythonBin will specify the location of the python binary to use.
# The "Python" env variable there is redundant except for OS X runs below.
install: # tool installation
sudo apt-get update;
- language: python
python: '2.6'
os: linux
env: Python='2.6' PythonBin="python"
install:
sudo apt-get update;
# Because Travis-CI no longer offers the 2.5 environment by default,
# we'll manually install 2.5.... It's not even available on the common
# ubuntu repos, so we'll use the well-known deadsnakes repo.
#
# Also, using ideas from @kura in https://gist.github.com/kura/8517802 ,
# download and install a compatible version of easy_install,
# which gives us an old version of pip,
# which gives us argparse which our unit test framework requires.
- language: python
os: linux
env: Python='2.5' PythonBin="/usr/bin/python2.5"
install:
sudo add-apt-repository "ppa:fkrull/deadsnakes" -y;
sudo apt-get update;
sudo apt-get install python2.5 ;
wget https://raw.githubusercontent.com/pypa/setuptools/bootstrap-py24/ez_setup.py -O /tmp/ez_setup.py ;
sudo $PythonBin /tmp/ez_setup.py ;
sudo easy_install-2.5 pip==1.3.1 ;
pip-2.5 --version ;
sudo pip-2.5 install --insecure argparse ;
# OS X Instances follow
# There is no OS X + PYTHON combination available by default, so we
# use the "language: generic" directive and we'll install python
# ourselves through some install directives.
# See references:
# github.com/travis-ci/travis-ci/issues/2312
# docs.travis-ci.com/user/languages/python
# docs.travis-ci.com/user/multi-os/#Python-example-%28unsupported-languages%29
# OS X Python current version (currently 2.7.11)
- language: generic
os: osx
env: Python='2.7' PythonBin="python"
install:
#brew update;
brew install python;
# OS X python 2.6.9
# We have to use pyenv to compile and install Python 2.6.9
# ourselves for OS X, as Travis-CI offers no OS X Python
# environments, and homebrew no longer offers a python26
# recipe.
- language: generic
os: osx
env: Python='2.6.9' PythonBin="/Users/travis/.pyenv/versions/2.6.9/bin/python" TERM='linux'
install:
#brew update;
#brew install python26; # This is no longer available.
pyenv install 2.6.9;
pyenv global 2.6.9;
# These are the commands we'll run for each build, posting the python
# version we're *really* running, initializing to obtain needed common
# seattle projects, building the current seattle project, and running
# the seattle unit testing framework, with all tests.
script:
- $PythonBin --version;
- cd ./scripts;
- $PythonBin initialize.py;
- $PythonBin build.py -t;
- cd ../RUNNABLE;
- $PythonBin utf.py -a;