10000 Refactor Travis build process to build the image each time. · davidblewett/rure-python@c32da01 · GitHub
[go: up one dir, main page]

Skip to content

Commit c32da01

Browse files
author
David Blewett
committed
Refactor Travis build process to build the image each time.
1 parent d0e5ee2 commit c32da01

File tree

5 files changed

+38
-54
lines changed

5 files changed

+38
-54
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/usr/local/rustup/toolchains/*/lib
2+
/usr/local/rustup/toolchains/*/share
3+
build/
4+
dist/

.travis.yml

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,18 @@
1+
language: python
2+
3+
services:
4+
- docker
5+
16
cache:
27
directories:
38
- /root/.cache/pip
49
- /root/.cargo
510

6-
env:
7-
global:
8-
- RURE_DIR=/opt/regex/regex-capi
9-
- REGEX_TAG=0.2.1
10-
11-
install:
12-
- docker pull $DOCKER_IMAGE
13-
14-
language: python
15-
16-
matrix:
17-
include:
18-
- sudo: required
19-
services:
20-
- docker
21-
env: DOCKER_IMAGE=quay.io/davidblewett/manylinux_rure
22-
- sudo: required
23-
services:
24-
- docker
25-
env: DOCKER_IMAGE=quay.io/davidblewett/manylinux_rure
26-
PRE_CMD=linux32
11+
before_install:
12+
- docker build -t davidblewett/rure-python .
2713

2814
notifications:
2915
email: false
3016

3117
script:
32-
- docker run -e "RURE_DIR=$RURE_DIR" -e "REGEX_TAG=$REGEX_TAG" --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-wheels.sh
33-
- ls /io/wheelhouse/
18+
- docker run davidblewett/rure-python /bin/sh -c "python -m unittest discover -s /root/rure/tests"

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM quay.io/pypa/manylinux1_x86_64
2+
COPY --from=rust:latest /usr/local/cargo/ /usr/local/cargo/
3+
COPY --from=rust:latest /usr/local/rustup/ /usr/local/rustup/
4+
5+
WORKDIR /root/
6+
COPY . .
7 FC69 +
8+
ENV CARGO_HOME=/usr/local/cargo \
9+
PATH="/usr/local/cargo/bin:/opt/python/cp37-cp37m/bin:$PATH" \
10+
RUSTUP_HOME=/usr/local/rustup
11+
12+
RUN rustc --version && \
13+
cargo --version
14+
15+
RUN python setup.py bdist_wheel && \
16+
pip install dist/*.whl

HISTORY.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
History
33
=======
44

5+
0.2.1 (2019-04-07)
6+
------------------
7+
8+
* Update build pipeline to support multiple Python versions
9+
* Binary wheels compiled against:
10+
11+
* Rust: 1.33.0
12+
* regex: 1.0
13+
* rure (regex-capi): 0.2.1
14+
515
0.2.0 (2018-03-04)
616
------------------
717

travis/build-wheels.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0