Merge branch 'cleanup'

This commit is contained in:
Hugo Osvaldo Barrera 2021-04-07 09:10:40 +02:00
commit 90e8b7b0bc
2 changed files with 0 additions and 69 deletions

View file

@ -1,48 +0,0 @@
#!/usr/bin/env python
from pathlib import Path
REPO_ROOT = Path(__file__).parent.parent
builds = [
{
"BUILD": "style",
"REQUIREMENTS": "release",
"DAV_SERVER": "skip",
},
{
"ETESYNC_TESTS": "true",
"BUILD": "test",
"REQUIREMENTS": "release",
"DAV_SERVER": "skip",
},
]
# XXX: Use `devel` here for recent python versions:
for requirements in ("release", "minimal"):
# XXX: `fastmail` has been left out here:
dav_servers = ("radicale", "xandikos")
builds.append(
{
"BUILD": "test",
"REQUIREMENTS": requirements,
"DAV_SERVER": "skip",
},
)
for dav_server in dav_servers:
job = {
"BUILD": "test-storage",
"REQUIREMENTS": requirements,
"DAV_SERVER": dav_server,
}
with open(REPO_ROOT / "scripts" / "tests.template") as f:
template = f.read()
# TODO: Delete previous ones...
for i, build in enumerate(builds):
with open(REPO_ROOT / ".builds" / f"{i}.yaml", "w") as f:
f.write(template.format(**build))

View file

@ -1,21 +0,0 @@
# vim: ft=yaml
image: archlinux
packages:
- docker
- python-pip
sources:
- https://github.com/pimutils/vdirsyncer
environment:
BUILD: {BUILD}
REQUIREMENTS: {REQUIREMENTS}
DAV_SERVER: {DAV_SERVER}
tasks:
- setup: |
cd vdirsyncer
make -e install-$BUILD
- test: |
cd vdirsyncer
# Non-system python is used for packages:
export PATH=$PATH:~/.local/bin/
make -e $BUILD