@@ -3,31 +3,77 @@ name: default
33
44steps :
55- name : build
6- image : ivigns/nice-ubuntu:0.0.1
6+ image : ivigns/nice-linux:debian-0.0.3
7+ volumes :
8+ - name : cache
9+ path : /tmp/cache
710 commands :
811 - git submodule sync
912 - git submodule update --init --recursive
10- - git submodule update --recursive
13+ - cd /drone/src/libdivsufsort
14+ - git pull origin master
1115 - cd /drone/src/sdsl-lite
12- - bash uninstall.sh /usr
16+ - git pull origin master
17+ - cd /drone/src/sdsl-lite/external/libdivsufsort
18+ - git pull origin master
19+ - cd /drone/src/pybind11
20+ - git pull origin master
1321 - cd /tmp
14- - rm -rf sdsl-lite-build
15- - rm -rf libdivsufsort-build
1622 - mkdir sdsl-lite-build
1723 - mkdir libdivsufsort-build
1824 - export CC=clang
1925 - export CXX=clang++
20- - export CFLAGS="-O3 -pipe -fPIC"
21- - export CXXFLAGS="-O3 -pipe -fcolor-diagnostics -static-libgcc -fPIC -lpthread -Wl,-Bstatic -Wl,-Bdynamic"
26+ - export CFLAGS="-O3 -static -lc -fPIC -static-libgcc -pipe -fcolor-diagnostics -lpthread -Wl,-Bstatic"
2227 - cd /tmp/libdivsufsort-build
23- - cmake /drone/src/libdivsufsort
28+ - cmake -D BUILD_SHARED_LIBS=OFF /drone/src/libdivsufsort
2429 - make install
25- - export CXXFLAGS="$CXXFLAGS -DNOCROSSCONSTRUCTORS "
30+ - export CXXFLAGS="-O3 -pipe -fcolor-diagnostics -static-libgcc -static-libstdc++ -fPIC -lpthread -Wl,-Bstatic -Wl,-Bdynamic "
2631 - cd /tmp/sdsl-lite-build
2732 - cmake /drone/src/sdsl-lite
2833 - make install
34+ - export CXXFLAGS="-O3 -pipe -stdlib=libc++ -fcolor-diagnostics -fPIC"
35+ - export CFLAGS="-O3 -pipe -fcolor-diagnostics -fPIC"
2936 - cd /drone/src/pybind11
3037 - pip install --no-binary ':all:' --no-cache-dir . --verbose
3138 - cd /drone/src
32- - pip install --no-binary ':all:' --no-cache-dir . --verbose
33- - cd /drone/src && ls -aR
39+ - pip wheel --no-binary ':all:' --no-cache-dir -w dist . --verbose
40+ - cp -r . /tmp/cache
41+
42+ - name : show
43+ image : debian:testing
44+ volumes :
45+ - name : cache
46+ path : /tmp/cache
47+ commands :
48+ - cd /tmp/cache && ls -aR
49+
50+ - name : test-wheel
51+ image : debian:testing
52+ volumes :
53+ - name : cache
54+ path : /tmp/cache
55+ commands :
56+ - apt-get update -qq
57+ - apt-get install -qqy python python-pip
58+ - pip install $(ls -d /tmp/cache/dist/*)
59+ - mkdir /tmp/test
60+ - cd /tmp/test
61+ - python -c 'import pysdsl'
62+
63+ - name : publish
64+ image : plugins/github-release
65+ volumes :
66+ - name : cache
67+ path : /tmp/cache
68+ settings :
69+ api_key :
70+ from_secret : repo_token
71+ files :
72+ - /tmp/cache/dist/*
73+ title : ${DRONE_TAG}
74+ when :
75+ event : tag
76+
77+ volumes :
78+ - name : cache
79+ temp : {}
0 commit comments