Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .droneci/NiceLinuxDockerfile

This file was deleted.

73 changes: 31 additions & 42 deletions .droneci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,47 @@ name: default

steps:
- name: build
image: ivigns/nice-linux:debian-0.0.3
image: alpine:edge
volumes:
- name: cache
path: /tmp/cache
commands:
- git submodule sync
- git submodule update --init --recursive
- cd /drone/src/libdivsufsort
- git pull origin master
- cd /drone/src/sdsl-lite
- git pull origin master
- cd /drone/src/sdsl-lite/external/libdivsufsort
- git pull origin master
- cd /drone/src/pybind11
- git pull origin master
- cd /tmp
- mkdir sdsl-lite-build
- mkdir libdivsufsort-build
- export CC=clang
- export CXX=clang++
- export CFLAGS="-O3 -static -lc -fPIC -static-libgcc -pipe -fcolor-diagnostics -lpthread -Wl,-Bstatic"
- cd /tmp/libdivsufsort-build
- cmake -D BUILD_SHARED_LIBS=OFF /drone/src/libdivsufsort
- make install
- export CXXFLAGS="-O3 -pipe -fcolor-diagnostics -static-libgcc -static-libstdc++ -fPIC -lpthread -Wl,-Bstatic -Wl,-Bdynamic"
- cd /tmp/sdsl-lite-build
- cmake /drone/src/sdsl-lite
- make install
- export CXXFLAGS="-O3 -pipe -stdlib=libc++ -fcolor-diagnostics -fPIC"
- export CFLAGS="-O3 -pipe -fcolor-diagnostics -fPIC"
- cd /drone/src/pybind11
- pip install --no-binary ':all:' --no-cache-dir . --verbose
- cd /drone/src
- pip wheel --no-binary ':all:' --no-cache-dir -w dist . --verbose
- apk add git cmake make clang g++ binutils musl-dev python3 python3-dev patchelf
- |
git submodule init
git submodule sync
git submodule update --init --recursive
git submodule update --recursive
- |
mkdir /tmp/sdsl-lite-build
export CC=clang
export CXX=clang++
export CFLAGS="-O3 -pipe -fcolor-diagnostics -static-libgcc -fPIC"
export CXXFLAGS="-O3 -pipe -fcolor-diagnostics -static-libgcc -static-libstdc++ -fPIC"
- cd /tmp/sdsl-lite-build && cmake /drone/src/sdsl-lite
- make VERBOSE=1 install
- |
python3 -m ensurepip
python3 -m pip install -U pip wheel pybind11
- |
export LDFLAGS="-Wl,-Bstatic -lstdc++ -lc -ldl -Wl,-Bdynamic"
export CXXFLAGS="${CXXFLAGS} ${LDFLAGS}"
export CFLAGS="${CFLAGS} ${LDFLAGS}"
cd /drone/src
- pip --disable-pip-version-check wheel --no-binary ':all:' --no-cache-dir -w dist --verbose --no-deps .
- |
pip uninstall wheel -y
pip install auditwheel
- auditwheel repair --plat linux_x86_64 dist/pysdsl*.whl
- cp -r . /tmp/cache

- name: show
image: debian:testing
volumes:
- name: cache
path: /tmp/cache
commands:
- cd /tmp/cache && ls -aR

- name: test-wheel
image: debian:testing
image: python:3.6
volumes:
- name: cache
path: /tmp/cache
commands:
- apt-get update -qq
- apt-get install -qqy python python-pip
- pip install $(ls -d /tmp/cache/dist/*)
- pip install /tmp/cache/dist/pysdsl*.whl
- mkdir /tmp/test
- cd /tmp/test
- python -c 'import pysdsl'
Expand All @@ -70,6 +58,7 @@ steps:
from_secret: repo_token
files:
- /tmp/cache/dist/*
- /tmp/cach/wheelhouse/*
title: ${DRONE_TAG}
when:
event: tag
Expand Down