mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
* Add utility to convert OsStr to CString This is approach seems acceptable in the context of deltachat, it should work correctly on unix and on Windows requires paths to be valid utf-8. * Use failure crate for error types * Add OsStrExt impl for Path, fix windows and update docs - Adds an OsStrExt impl for Path directly, a little more convenience. - Fix the windows code to actually use the right function name. Test the impl function on unix too since that was the point of having it implemented in a separate function to begin with. - Improve the docs, do hyperlinks a bit better. * Another attempt at learing to type Having your compiler in the cloud is just painful. * Do not treat this as a fatal error When PRs are made from forks the passwords are unavailable. We don't want CI to fail because of this. * Implement using the AsRef<OsStr> trait This means any type with implements this trait will get this implementation, thus covering both OsStr and Path instead of having duplicate implementations for those like before. * fix format
48 lines
1.1 KiB
Bash
Executable File
48 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -z "$DEVPI_LOGIN" ] ; then
|
|
echo "required: password for 'dc' user on https://m.devpi/net/dc index"
|
|
exit 0
|
|
fi
|
|
|
|
set -xe
|
|
|
|
#DOXYDOCDIR=${1:?directory where doxygen docs to be found}
|
|
PYDOCDIR=${1:?directory with python docs}
|
|
WHEELHOUSEDIR=${2:?directory with pre-built wheels}
|
|
|
|
export BRANCH=${CIRCLE_BRANCH:?specify branch for uploading purposes}
|
|
|
|
|
|
# python docs to py.delta.chat
|
|
rsync -avz \
|
|
-e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \
|
|
"$PYDOCDIR/html/" \
|
|
delta@py.delta.chat:build/${BRANCH}
|
|
|
|
# C docs to c.delta.chat
|
|
#rsync -avz \
|
|
# -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \
|
|
# "$DOXYDOCDIR/html/" \
|
|
# delta@py.delta.chat:build-c/${BRANCH}
|
|
|
|
echo -----------------------
|
|
echo upload wheels
|
|
echo -----------------------
|
|
|
|
# Bundle external shared libraries into the wheels
|
|
pushd $WHEELHOUSEDIR
|
|
|
|
pip install devpi-client
|
|
devpi use https://m.devpi.net
|
|
devpi login dc --password $DEVPI_LOGIN
|
|
|
|
devpi use dc/$BRANCH || {
|
|
devpi index -c $BRANCH
|
|
devpi use dc/$BRANCH
|
|
}
|
|
devpi index $BRANCH bases=/root/pypi
|
|
devpi upload deltachat*.whl
|
|
|
|
popd
|