Skip to content

Commit 99590f0

Browse files
committed
Build Linux wheels WIP test
1 parent 3a21887 commit 99590f0

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
notifications:
2+
email: false
3+
4+
matrix:
5+
include:
6+
- sudo: required
7+
services:
8+
- docker
9+
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
10+
- sudo: required
11+
services:
12+
- docker
13+
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
14+
PRE_CMD=linux32
15+
16+
install:
17+
- docker pull $DOCKER_IMAGE
18+
19+
script:
20+
- docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/.travis/build-linux-wheels.sh
21+
- ls wheelhouse/

.travis/build-linux-wheels.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -e -x
3+
4+
# Compile wheels
5+
for PYBIN in /opt/python/*/bin; do
6+
if [ $(echo "${PYBIN}" | grep -o '[[:digit:]][[:digit:]]' | head -n 1) -ge 33 ]; then
7+
# typed_ast only builds on Python 3.3 and newer
8+
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
9+
fi
10+
done

0 commit comments

Comments
 (0)