forked from SeattleTestbed/nodemanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates to travis and appveyor CI config; see SeattleTestbed/repy_v2#…
- Loading branch information
Showing
2 changed files
with
96 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,86 @@ | ||
# <~> Travis integration file. | ||
# Seattle supports Python 2.5 through 2.7, per https://seattle.poly.edu/wiki/ProgrammersPage | ||
# Travis provides OS X and Linux (think generally Debian-based) OS instances. | ||
# AppVeyor provides Windows | ||
# Travis integration file. | ||
# Seattle supports Python 2.5 through 2.7, per | ||
# seattle.poly.edu/wiki/ProgrammersPage | ||
# | ||
# 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' # Type of python to use | ||
python: '2.7' # Version of python to use | ||
os: linux # The OS of the VM | ||
install: # tool installation | ||
- sudo apt-get update | ||
- sudo apt-get install net-tools | ||
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 | ||
- sudo apt-get install net-tools | ||
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. | ||
- language: python | ||
python: '2.5' | ||
os: linux | ||
env: Python='2.5' PythonBin="/usr/bin/python2.5" | ||
install: | ||
- sudo apt-get update | ||
- sudo apt-get install net-tools | ||
|
||
sudo add-apt-repository "ppa:fkrull/deadsnakes" -y; | ||
sudo apt-get update; | ||
sudo apt-get install python2.5; | ||
|
||
# OS X Instances follow | ||
# Here, we are using objective-c as currently there is no MAC + PYTHON combination available by default | ||
# We instead use objective-c to install the python version we want | ||
# 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: objective-c | ||
- language: generic | ||
os: osx | ||
env: Python='2.7' PythonBin="python" | ||
install: | ||
brew update; | ||
#brew update; | ||
brew install python; | ||
# OS X python 2.5.6 | ||
- language: objective-c | ||
os: osx | ||
install: | ||
brew update; | ||
brew install pyenv; | ||
pyenv install 2.5.6; | ||
pyenv global 2.5.6; | ||
|
||
# OS X python 2.6.9 | ||
- language: objective-c | ||
# 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" | ||
install: | ||
brew update; | ||
brew install python; | ||
pyenv install 2.5.6; | ||
pyenv global 2.5.6; | ||
#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: | ||
- python --version | ||
- cd ./scripts | ||
- python initialize.py | ||
- python build.py -t | ||
- cd ../RUNNABLE | ||
- python utf.py -a | ||
- $PythonBin --version; | ||
- cd ./scripts; | ||
- $PythonBin initialize.py; | ||
- $PythonBin build.py -t; | ||
- cd ../RUNNABLE; | ||
- $PythonBin utf.py -a; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters