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

travis: try building our own Python

parent caca1370
...@@ -3,6 +3,7 @@ bin/ ...@@ -3,6 +3,7 @@ bin/
build/ build/
develop-eggs/ develop-eggs/
eggs/ eggs/
python/
*.pyc *.pyc
*.egg *.egg
*.egg-info *.egg-info
language: python language: python
python: env:
- "2.6" - PYTHON_VER=2.6
- "2.7" - PYTHON_VER=2.7
- "3.2" - PYTHON_VER=3.2
- "pypy"
branches: branches:
only: only:
...@@ -14,10 +13,7 @@ notifications: ...@@ -14,10 +13,7 @@ notifications:
- hanno@hannosch.eu - hanno@hannosch.eu
install: install:
- dpkg -l
- deactivate - deactivate
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then /usr/bin/pypy dev.py; fi - make build
- if [[ $TRAVIS_PYTHON_VERSION <> 'pypy' ]]; then /usr/bin/python$TRAVIS_PYTHON_VERSION dev.py; fi
script: script: make test
- bin/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