Skip to content

Commit

Permalink
Test import of multilinux package
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Jul 11, 2019
1 parent 93d50a4 commit 67acd2f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
test/*.whl
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ before_script:

script:
- docker run --rm -v $PWD/dist:/dist builder cp27-cp27mu 3.6.4
- cp dist/*.whl test/
- for OS in centos7 ubuntu1804; do echo $OS; docker build -f test/Dockerfile.$OS test; done

# Travis encryption where GITHUB_KEY is
# a GitHub token with public_repo access
Expand Down
11 changes: 11 additions & 0 deletions test/Dockerfile.centos7
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM centos:7

RUN yum install -y -q epel-release && \
yum install -y -q python-virtualenv && \
virtualenv venv

# Default pip is too old for manylinux wheels
RUN venv/bin/pip install -U pip

ADD test.sh zeroc_ice-3.6.4-cp27-cp27mu-manylinux2010_x86_64.whl /
RUN /test.sh
8 changes: 8 additions & 0 deletions test/Dockerfile.ubuntu1804
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ubuntu:18.04

RUN apt-get update && \
apt-get install -y -q python-virtualenv && \
virtualenv venv

ADD test.sh zeroc_ice-3.6.4-cp27-cp27mu-manylinux2010_x86_64.whl /
RUN /test.sh
7 changes: 7 additions & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
set -e

. venv/bin/activate

pip install zeroc_ice*manylinux*whl
python -c 'import Ice; print Ice.stringVersion()'

0 comments on commit 67acd2f

Please sign in to comment.