mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 18:29:19 +02:00

Travis is getting slower and was already hard to debug. This commit: - moves from travis to Circle-CI - has a ci-scripts/README.md which explains what is contained there - puts all build and CI scripts into "ci_scripts" directory - allows to run full ci runs locally - trims down the base Docker image where tests/docs/wheels are run from 4.4GB to 1.7GB - fixes #628 Using circle-ci also means that we can probably integrate Mac-OS build steps more easily. I am sure that my initial circle-ci config (helped by kind hints from @dignifiedquire ) can be improved.
20 lines
669 B
Bash
Executable file
20 lines
669 B
Bash
Executable file
# perform CI jobs on PRs and after merges to master.
|
|
# triggered from .circleci/config.yml
|
|
|
|
set -e -x
|
|
|
|
export BRANCH=${CIRCLE_BRANCH:-test7}
|
|
|
|
# run doxygen on c-source (needed by later doc-generation steps).
|
|
# XXX modifies the host filesystem docs/xml and docs/html directories
|
|
# XXX which you can then only remove with sudo as they belong to root
|
|
|
|
if [ -n "$DOCS" ] ; then
|
|
docker run --rm -it -v $PWD:/mnt -w /mnt/docs deltachat/doxygen doxygen
|
|
fi
|
|
|
|
# run everything else inside docker (TESTS, DOCS, WHEELS)
|
|
docker run -e BRANCH -e MESONARGS -e TESTS -e DOCS \
|
|
--rm -it -v $(pwd):/mnt -w /mnt \
|
|
deltachat/coredeps ci_scripts/run_all.sh
|
|
|