mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Minimal PR build again
This commit is contained in:
parent
87560481d6
commit
b197592774
2 changed files with 268 additions and 177 deletions
317
.travis.yml
317
.travis.yml
|
|
@ -1,116 +1,201 @@
|
||||||
# Generated by scripts/make_travisconf.py
|
{
|
||||||
|
"branches": {
|
||||||
sudo: true
|
"only": [
|
||||||
language: python
|
"auto",
|
||||||
|
"master"
|
||||||
install:
|
]
|
||||||
- ". scripts/travis-install.sh"
|
},
|
||||||
- "pip install -U pip"
|
"install": [
|
||||||
- "pip install wheel"
|
"if [ \"$BUILD_PRS\" = \"true\" ] || [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]; then\n . scripts/travis-install.sh;\n pip install -U pip;\n pip install wheel;\n make -e install-dev;\n make -e install-$BUILD;\nfi"
|
||||||
- "make -e install-dev"
|
],
|
||||||
- "make -e install-$BUILD"
|
"language": "python",
|
||||||
|
"matrix": {
|
||||||
script:
|
"include": [
|
||||||
- "make -e $BUILD"
|
{
|
||||||
|
"env": "BUILD=style BUILD_PRS=true",
|
||||||
matrix:
|
"python": "2.7"
|
||||||
include:
|
},
|
||||||
- python: 2.7
|
{
|
||||||
env: BUILD=style
|
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=devel BUILD_PRS=false",
|
||||||
- python: 2.7
|
"python": "2.7"
|
||||||
env: BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=devel
|
},
|
||||||
- python: 2.7
|
{
|
||||||
env: BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=release
|
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=release BUILD_PRS=false",
|
||||||
- python: 2.7
|
"python": "2.7"
|
||||||
env: BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=minimal
|
},
|
||||||
- python: 2.7
|
{
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel
|
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=minimal BUILD_PRS=false",
|
||||||
- python: 2.7
|
"python": "2.7"
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=release
|
},
|
||||||
- python: 2.7
|
{
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel BUILD_PRS=true",
|
||||||
- python: 2.7
|
"python": "2.7"
|
||||||
env: BUILD=test DAV_SERVER=owncloud REQUIREMENTS=devel
|
},
|
||||||
- python: 2.7
|
{
|
||||||
env: BUILD=test DAV_SERVER=owncloud REQUIREMENTS=release
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=release BUILD_PRS=true",
|
||||||
- python: 2.7
|
"python": "2.7"
|
||||||
env: BUILD=test DAV_SERVER=owncloud REQUIREMENTS=minimal
|
},
|
||||||
- python: 2.7
|
{
|
||||||
env: BUILD=test DAV_SERVER=baikal REQUIREMENTS=devel
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal BUILD_PRS=true",
|
||||||
- python: 2.7
|
"python": "2.7"
|
||||||
env: BUILD=test DAV_SERVER=baikal REQUIREMENTS=release
|
},
|
||||||
- python: 2.7
|
{
|
||||||
env: BUILD=test DAV_SERVER=baikal REQUIREMENTS=minimal
|
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=devel BUILD_PRS=false",
|
||||||
- python: 2.7
|
"python": "2.7"
|
||||||
env: BUILD=test DAV_SERVER=davical REQUIREMENTS=devel
|
},
|
||||||
- python: 2.7
|
{
|
||||||
env: BUILD=test DAV_SERVER=davical REQUIREMENTS=release
|
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=release BUILD_PRS=false",
|
||||||
- python: 2.7
|
"python": "2.7"
|
||||||
env: BUILD=test DAV_SERVER=davical REQUIREMENTS=minimal
|
},
|
||||||
- python: 3.3
|
{
|
||||||
env: BUILD=style
|
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=minimal BUILD_PRS=false",
|
||||||
- python: 3.3
|
"python": "2.7"
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel
|
},
|
||||||
- python: 3.3
|
{
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=release
|
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=devel BUILD_PRS=false",
|
||||||
- python: 3.3
|
"python": "2.7"
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal
|
},
|
||||||
- python: 3.4
|
{
|
||||||
env: BUILD=style
|
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=release BUILD_PRS=false",
|
||||||
- python: 3.4
|
"python": "2.7"
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel
|
},
|
||||||
- python: 3.4
|
{
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=release
|
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=minimal BUILD_PRS=false",
|
||||||
- python: 3.4
|
"python": "2.7"
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal
|
},
|
||||||
- python: 3.5
|
{
|
||||||
env: BUILD=style
|
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=devel BUILD_PRS=false",
|
||||||
- python: 3.5
|
"python": "2.7"
|
||||||
env: BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=devel
|
},
|
||||||
- python: 3.5
|
{
|
||||||
env: BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=release
|
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=release BUILD_PRS=false",
|
||||||
- python: 3.5
|
"python": "2.7"
|
||||||
env: BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=minimal
|
},
|
||||||
- python: 3.5
|
{
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel
|
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=minimal BUILD_PRS=false",
|
||||||
- python: 3.5
|
"python": "2.7"
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=release
|
},
|
||||||
- python: 3.5
|
{
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal
|
"env": "BUILD=style BUILD_PRS=true",
|
||||||
- python: 3.5
|
"python": "3.3"
|
||||||
env: BUILD=test DAV_SERVER=owncloud REQUIREMENTS=devel
|
},
|
||||||
- python: 3.5
|
{
|
||||||
env: BUILD=test DAV_SERVER=owncloud REQUIREMENTS=release
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel BUILD_PRS=false",
|
||||||
- python: 3.5
|
"python": "3.3"
|
||||||
env: BUILD=test DAV_SERVER=owncloud REQUIREMENTS=minimal
|
},
|
||||||
- python: 3.5
|
{
|
||||||
env: BUILD=test DAV_SERVER=baikal REQUIREMENTS=devel
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=release BUILD_PRS=false",
|
||||||
- python: 3.5
|
"python": "3.3"
|
||||||
env: BUILD=test DAV_SERVER=baikal REQUIREMENTS=release
|
},
|
||||||
- python: 3.5
|
{
|
||||||
env: BUILD=test DAV_SERVER=baikal REQUIREMENTS=minimal
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal BUILD_PRS=false",
|
||||||
- python: 3.5
|
"python": "3.3"
|
||||||
env: BUILD=test DAV_SERVER=davical REQUIREMENTS=devel
|
},
|
||||||
- python: 3.5
|
{
|
||||||
env: BUILD=test DAV_SERVER=davical REQUIREMENTS=release
|
"env": "BUILD=style BUILD_PRS=true",
|
||||||
- python: 3.5
|
"python": "3.4"
|
||||||
env: BUILD=test DAV_SERVER=davical REQUIREMENTS=minimal
|
},
|
||||||
- python: pypy
|
{
|
||||||
env: BUILD=style
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel BUILD_PRS=false",
|
||||||
- python: pypy
|
"python": "3.4"
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel
|
},
|
||||||
- python: pypy
|
{
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=release
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=release BUILD_PRS=false",
|
||||||
- python: pypy
|
"python": "3.4"
|
||||||
env: BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal
|
},
|
||||||
- language: generic
|
{
|
||||||
os: osx
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal BUILD_PRS=false",
|
||||||
env: BUILD=test
|
"python": "3.4"
|
||||||
|
},
|
||||||
|
{
|
||||||
branches:
|
"env": "BUILD=style BUILD_PRS=true",
|
||||||
only:
|
"python": "3.5"
|
||||||
- auto
|
},
|
||||||
- master
|
{
|
||||||
|
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=devel BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=release BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=minimal BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel BUILD_PRS=true",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=release BUILD_PRS=true",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal BUILD_PRS=true",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=devel BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=release BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=minimal BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=devel BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=release BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=minimal BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=devel BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=release BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=minimal BUILD_PRS=false",
|
||||||
|
"python": "3.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=style BUILD_PRS=true",
|
||||||
|
"python": "pypy"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel BUILD_PRS=false",
|
||||||
|
"python": "pypy"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=release BUILD_PRS=false",
|
||||||
|
"python": "pypy"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal BUILD_PRS=false",
|
||||||
|
"python": "pypy"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD=test",
|
||||||
|
"language": "generic",
|
||||||
|
"os": "osx"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"script": [
|
||||||
|
"if [ \"$BUILD_PRS\" = \"true\" ] || [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]; then\n make -e $BUILD\nfi"
|
||||||
|
],
|
||||||
|
"sudo": true
|
||||||
|
}
|
||||||
|
|
@ -1,75 +1,81 @@
|
||||||
import contextlib
|
|
||||||
import itertools
|
import itertools
|
||||||
|
import json
|
||||||
print("# Generated by scripts/make_travisconf.py")
|
import sys
|
||||||
print("")
|
|
||||||
|
|
||||||
i = 0
|
|
||||||
|
|
||||||
|
|
||||||
def p(s):
|
def script(x):
|
||||||
print(" " * i + s)
|
return """
|
||||||
|
if [ "$BUILD_PRS" = "true" ] || [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||||
|
{}
|
||||||
|
fi
|
||||||
|
""".strip().format(x.strip())
|
||||||
|
|
||||||
|
cfg = {}
|
||||||
|
|
||||||
@contextlib.contextmanager
|
cfg['sudo'] = True
|
||||||
def section(name):
|
cfg['language'] = 'python'
|
||||||
p("{}:".format(name))
|
|
||||||
global i
|
|
||||||
i += 1
|
|
||||||
yield
|
|
||||||
i -= 1
|
|
||||||
print("")
|
|
||||||
|
|
||||||
p("sudo: true")
|
cfg['branches'] = {
|
||||||
p("language: python")
|
'only': ['auto', 'master']
|
||||||
p("")
|
}
|
||||||
|
|
||||||
with section("install"):
|
cfg['install'] = [script("""
|
||||||
p('- ". scripts/travis-install.sh"')
|
. scripts/travis-install.sh;
|
||||||
|
pip install -U pip;
|
||||||
|
pip install wheel;
|
||||||
|
make -e install-dev;
|
||||||
|
make -e install-$BUILD;
|
||||||
|
""")]
|
||||||
|
|
||||||
p('- "pip install -U pip"')
|
cfg['script'] = [script("""
|
||||||
p('- "pip install wheel"')
|
make -e $BUILD
|
||||||
p('- "make -e install-dev"')
|
""")]
|
||||||
p('- "make -e install-$BUILD"')
|
|
||||||
|
|
||||||
with section("script"):
|
matrix = []
|
||||||
p('- "make -e $BUILD"')
|
cfg['matrix'] = {'include': matrix}
|
||||||
|
|
||||||
with section("matrix"):
|
for python in ("2.7", "3.3", "3.4", "3.5", "pypy"):
|
||||||
with section("include"):
|
matrix.append({
|
||||||
for python in ("2.7", "3.3", "3.4", "3.5", "pypy"):
|
'python': python,
|
||||||
h = lambda: p("- python: {}".format(python))
|
'env': 'BUILD=style BUILD_PRS=true'
|
||||||
h()
|
})
|
||||||
p(" env: BUILD=style")
|
|
||||||
|
|
||||||
if python in ("2.7", "3.5"):
|
if python in ("2.7", "3.5"):
|
||||||
dav_servers = ("radicale", "owncloud", "baikal", "davical")
|
dav_servers = ("radicale", "owncloud", "baikal", "davical")
|
||||||
rs_servers = ("mysteryshack",)
|
rs_servers = ("mysteryshack",)
|
||||||
else:
|
else:
|
||||||
dav_servers = ("radicale",)
|
dav_servers = ("radicale",)
|
||||||
rs_servers = ()
|
rs_servers = ()
|
||||||
|
|
||||||
for (server_type, server), requirements in itertools.product(
|
for (server_type, server), requirements in itertools.product(
|
||||||
itertools.chain(
|
itertools.chain(
|
||||||
(("REMOTESTORAGE", x) for x in rs_servers),
|
(("REMOTESTORAGE", x) for x in rs_servers),
|
||||||
(("DAV", x) for x in dav_servers)
|
(("DAV", x) for x in dav_servers)
|
||||||
),
|
),
|
||||||
("devel", "release", "minimal")
|
("devel", "release", "minimal")
|
||||||
):
|
):
|
||||||
h()
|
build_prs = (
|
||||||
p(" env: "
|
python in ("2.7", "3.5") and
|
||||||
"BUILD=test "
|
server_type == 'DAV' and
|
||||||
"{server_type}_SERVER={server} "
|
server == 'radicale'
|
||||||
"REQUIREMENTS={requirements}"
|
)
|
||||||
.format(server_type=server_type,
|
|
||||||
server=server,
|
|
||||||
requirements=requirements))
|
|
||||||
|
|
||||||
p("- language: generic")
|
matrix.append({
|
||||||
p(" os: osx")
|
'python': python,
|
||||||
p(" env: BUILD=test")
|
'env': ("BUILD=test "
|
||||||
|
"{server_type}_SERVER={server} "
|
||||||
|
"REQUIREMENTS={requirements} "
|
||||||
|
"BUILD_PRS={build_prs}"
|
||||||
|
.format(server_type=server_type,
|
||||||
|
server=server,
|
||||||
|
requirements=requirements,
|
||||||
|
build_prs='true' if build_prs else 'false'))
|
||||||
|
})
|
||||||
|
|
||||||
with section("branches"):
|
matrix.append({
|
||||||
with section("only"):
|
'language': 'generic',
|
||||||
p('- auto')
|
'os': 'osx',
|
||||||
p('- master')
|
'env': 'BUILD=test'
|
||||||
|
})
|
||||||
|
|
||||||
|
json.dump(cfg, sys.stdout, sort_keys=True, indent=2)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue