Commit 021663b8 authored by Hanno Schlichting's avatar Hanno Schlichting

travis: try building our own Python

parent caca1370
......@@ -3,6 +3,7 @@ bin/
build/
develop-eggs/
eggs/
python/
*.pyc
*.egg
*.egg-info
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "pypy"
env:
- PYTHON_VER=2.6
- PYTHON_VER=2.7
- PYTHON_VER=3.2
branches:
only:
......@@ -14,10 +13,7 @@ notifications:
- hanno@hannosch.eu
install:
- dpkg -l
- deactivate
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then /usr/bin/pypy dev.py; fi
- if [[ $TRAVIS_PYTHON_VERSION <> 'pypy' ]]; then /usr/bin/python$TRAVIS_PYTHON_VERSION dev.py; fi
- make build
script:
- bin/test
script: make test
HERE = $(shell pwd)
PYTHON_PATH = $(HERE)/python
PYTHON_VER ?= 2.7
PYTHON_MINOR ?= 2.7.3
ifeq ($(PYTHON_VER),"2.6")
PYTHON_MINOR ?= 2.6.8
endif
ifeq ($(PYTHON_VER),"3.2")
PYTHON_MINOR ?= 3.2.3
endif
PYTHON_DOWNLOAD ?= http://www.python.org/ftp/python/$(PYTHON_MINOR)/Python-$(PYTHON_MINOR).tar.bz2
.PHONY: all build test
all: build
$(PYTHON_PATH):
@echo "Installing Python"
mkdir -p $(PYTHON_PATH)
cd $(PYTHON_PATH)/Python-$(PYTHON_MINOR) && \
./configure --prefix $(PYTHON_PATH) && make && make install
@echo "Finished installing Python"
build: $(PYTHON_PATH)
$(PYTHON_PATH)/bin/python dev.py
test:
$(HERE)/bin/test -v
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment