Skip to content
Snippets Groups Projects
Commit 9cf26089 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Remove Travis build scripts for the time being (#269)

parent 67dd4e3e
No related branches found
No related tags found
No related merge requests found
notifications:
email: false
if: tag IS present
matrix:
include:
- sudo: required
services:
- docker
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
- sudo: required
services:
- docker
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
- PRE_CMD=linux32
install:
- docker pull $DOCKER_IMAGE
script:
- pwd
- ls -la
- docker run --rm -v `pwd`:/io -e TWINE_USERNAME -e TWINE_PASSWORD $DOCKER_IMAGE $PRE_CMD /io/travis/build-wheels.sh
- ls wheelhouse/
#!/bin/bash
set -e -x
export PYHOME=/home
export CL_H=${PYHOME}/cl_h
export CL_ICDLOAD=${PYHOME}/cl_icdload
cd ${PYHOME}
yum install -y git cmake
git clone https://github.com/KhronosGroup/OpenCL-Headers.git ${CL_H}
git clone https://github.com/KhronosGroup/OpenCL-ICD-Loader.git ${CL_ICDLOAD}
ln -s ${CL_H}/CL /usr/include/CL
make -C ${CL_ICDLOAD}
cp -r ${CL_ICDLOAD}/build/lib/lib* /usr/lib
# Compile wheels
for PYBIN in /opt/python/*/bin; do
"${PYBIN}/pip" install numpy pybind11 mako
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
done
# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
auditwheel repair "$whl" -w /io/wheelhouse/
done
/opt/python/cp37-cp37m/bin/pip install twine
for WHEEL in /io/wheelhouse/pyopencl*.whl; do
# dev
# /opt/python/cp37-cp37m/bin/twine upload \
# --skip-existing \
# --repository-url https://test.pypi.org/legacy/ \
# -u "${TWINE_USERNAME}" -p "${TWINE_PASSWORD}" \
# "${WHEEL}"
# prod
/opt/python/cp37-cp37m/bin/twine upload \
--skip-existing \
-u "${TWINE_USERNAME}" -p "${TWINE_PASSWORD}" \
"${WHEEL}"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment