Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
fix: fix dockerfile for automated builds
Browse files Browse the repository at this point in the history
Dockerfile and Makefile were both broken. This fixes the Dockerfile
and uses the latest PyPy 5.0 for building the container.

Closes #414
  • Loading branch information
bbangert committed Mar 18, 2016
1 parent cdc8b33 commit 6c38f74
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ html_coverage
site-packages/*
lib-python/*
bin/*
ddb
include/*
lib_pypy/*
pypy
Expand Down
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ sudo: false
python:
- "pypy"
install:
- wget https://bitbucket.org/pypy/pypy/downloads/pypy-5.0.0-linux64.tar.bz2
- tar xjvf pypy-5.0.0-linux64.tar.bz2
- mv pypy-5.0.0-linux64 pypy
- source pypy/bin/activate
- make travis
script: tox -- --with-coverage --cover-xml --cover-package=autopush
after_success:
Expand Down
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@
# VERSION 0.1

# Extend base debian
FROM stackbrew/debian:wheezy
FROM stackbrew/debian:sid

MAINTAINER Ben Bangert <bbangert@mozilla.com>

# It's nice to have some newer packages
RUN echo "deb http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list

RUN mkdir -p /home/autopush
ADD . /home/autopush/

WORKDIR /home/autopush

RUN \
apt-get update; \
apt-get install -y -qq make curl wget bzip2 libexpat1-dev gcc libssl-dev libffi-dev; \
apt-get install -y -qq make curl wget bzip2 libexpat1-dev gcc git-core libssl1.0.0 libssl-dev libffi-dev; \
make clean; \
tar xjvf pypy-2.5.1-linux64.tar.bz2; \
mv pypy-2.5.1-linux64 pypy; \
wget https://bitbucket.org/pypy/pypy/downloads/pypy-5.0.0-linux64.tar.bz2; \
tar xjvf pypy-5.0.0-linux64.tar.bz2; \
mv pypy-5.0.0-linux64 pypy; \
make; \
apt-get remove -y -qq make curl wget bzip2 libexpat1-dev gcc libssl-dev libffi-dev; \
apt-get remove -y -qq make curl wget bzip2 libexpat1-dev gcc git-core libssl1.0.0 libssl-dev libffi-dev; \
apt-get install -y -qq libexpat1 libssl1.0.0 libffi6; \
apt-get autoremove -y -qq; \
apt-get clean -y
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ SHELL := /bin/sh
APPNAME = autopush
DEPS =
HERE = $(shell pwd)
PTYPE=python
BIN = $(HERE)/bin
PTYPE=pypy
BIN = $(HERE)/pypy/bin
VIRTUALENV = virtualenv
TESTS = $(APPNAME)/tests
PYTHON = $(BIN)/$(PTYPE)
Expand All @@ -18,7 +18,7 @@ BUILD_DIRS = bin build deps include lib lib64 lib_pypy lib-python\

all: build

travis: $(HERE)/ddb
travis: $(HERE)/ddb $(BIN)/tox
pip install coverage nose mock moto codecov tox

$(HERE)/ddb:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ autobahn[twisted]==0.13.0
boto==2.38.0
cffi==1.1.2
characteristic==14.3.0
cryptography==0.9.1
cryptography==1.2.3
cyclone==1.1
datadog==0.5.0
decorator==4.0.0
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ autobahn[twisted]==0.13.0
boto==2.38.0
#cffi==1.1.2
characteristic==14.3.0
cryptography==0.9.1
cryptography==1.2.3
cyclone==1.1
datadog==0.5.0
decorator==4.0.0
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
envlist = pypy,flake8

[testenv]
basepython = ../../pypy/bin/pypy
deps = -rtest-requirements.txt
usedevelop = True
passenv = SKIP_INTEGRATION
Expand Down

0 comments on commit 6c38f74

Please sign in to comment.