Run all tests in PR

The current behavior is annoying in combination with homu.io

Reverts #387
This commit is contained in:
Markus Unterwaditzer 2016-06-16 15:16:42 +02:00
parent 842162136a
commit df5545946e
3 changed files with 60 additions and 76 deletions

View file

@ -9,185 +9,187 @@
"submodules": false "submodules": false
}, },
"install": [ "install": [
"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" ". scripts/travis-install.sh",
"make -e install-dev",
"make -e install-$BUILD"
], ],
"language": "python", "language": "python",
"matrix": { "matrix": {
"include": [ "include": [
{ {
"env": "BUILD=style BUILD_PRS=true", "env": "BUILD=style",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=devel",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=release",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=minimal",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=devel",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=release",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=minimal",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=devel",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=release",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=minimal",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=devel",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=release",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=minimal",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=devel",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=release",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=minimal",
"python": "2.7" "python": "2.7"
}, },
{ {
"env": "BUILD=style BUILD_PRS=true", "env": "BUILD=style",
"python": "3.3" "python": "3.3"
}, },
{ {
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel",
"python": "3.3" "python": "3.3"
}, },
{ {
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=release",
"python": "3.3" "python": "3.3"
}, },
{ {
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal",
"python": "3.3" "python": "3.3"
}, },
{ {
"env": "BUILD=style BUILD_PRS=true", "env": "BUILD=style",
"python": "3.4" "python": "3.4"
}, },
{ {
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel",
"python": "3.4" "python": "3.4"
}, },
{ {
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=release",
"python": "3.4" "python": "3.4"
}, },
{ {
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal",
"python": "3.4" "python": "3.4"
}, },
{ {
"env": "BUILD=style BUILD_PRS=true", "env": "BUILD=style",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=devel",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=release",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test REMOTESTORAGE_SERVER=mysteryshack REQUIREMENTS=minimal",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel BUILD_PRS=true", "env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=devel",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=release BUILD_PRS=true", "env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=release",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal BUILD_PRS=true", "env": "BUILD=test DAV_SERVER=radicale REQUIREMENTS=minimal",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=devel",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=release",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=owncloud REQUIREMENTS=minimal",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=devel",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=release",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=nextcloud REQUIREMENTS=minimal",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=devel",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=release",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=baikal REQUIREMENTS=minimal",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=devel BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=devel",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=release BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=release",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=minimal BUILD_PRS=false", "env": "BUILD=test DAV_SERVER=davical REQUIREMENTS=minimal",
"python": "3.5" "python": "3.5"
}, },
{ {
"env": "BUILD=style BUILD_PRS=true", "env": "BUILD=style",
"python": "pypy" "python": "pypy"
}, },
{ {
@ -197,8 +199,6 @@
} }
] ]
}, },
"script": [ "script": "make -e $BUILD",
"if [ \"$BUILD_PRS\" = \"true\" ] || [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]; then\n make -e $BUILD\nfi"
],
"sudo": true "sudo": true
} }

View file

@ -3,13 +3,6 @@ import json
import sys import sys
def script(x):
return """
if [ "$BUILD_PRS" = "true" ] || [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
{}
fi
""".strip().format(x.strip())
cfg = {} cfg = {}
cfg['sudo'] = True cfg['sudo'] = True
@ -23,17 +16,13 @@ cfg['branches'] = {
'only': ['auto', 'master'] 'only': ['auto', 'master']
} }
cfg['install'] = [script(""" cfg['install'] = [
. scripts/travis-install.sh; ". scripts/travis-install.sh",
pip install -U pip; "make -e install-dev",
pip install wheel; "make -e install-$BUILD"
make -e install-dev; ]
make -e install-$BUILD;
""")]
cfg['script'] = [script(""" cfg['script'] = "make -e $BUILD"
make -e $BUILD
""")]
matrix = [] matrix = []
cfg['matrix'] = {'include': matrix} cfg['matrix'] = {'include': matrix}
@ -41,7 +30,7 @@ cfg['matrix'] = {'include': matrix}
for python in ("2.7", "3.3", "3.4", "3.5", "pypy"): for python in ("2.7", "3.3", "3.4", "3.5", "pypy"):
matrix.append({ matrix.append({
'python': python, 'python': python,
'env': 'BUILD=style BUILD_PRS=true' 'env': 'BUILD=style'
}) })
if python == "3.5": if python == "3.5":
@ -65,22 +54,14 @@ for python in ("2.7", "3.3", "3.4", "3.5", "pypy"):
), ),
("devel", "release", "minimal") ("devel", "release", "minimal")
): ):
build_prs = (
python == "3.5" and
server_type == 'DAV' and
server == 'radicale'
)
matrix.append({ matrix.append({
'python': python, 'python': python,
'env': ("BUILD=test " 'env': ("BUILD=test "
"{server_type}_SERVER={server} " "{server_type}_SERVER={server} "
"REQUIREMENTS={requirements} " "REQUIREMENTS={requirements}"
"BUILD_PRS={build_prs}"
.format(server_type=server_type, .format(server_type=server_type,
server=server, server=server,
requirements=requirements, requirements=requirements))
build_prs='true' if build_prs else 'false'))
}) })
matrix.append({ matrix.append({

View file

@ -24,3 +24,6 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
virtualenv -p python3 $HOME/osx-py3 virtualenv -p python3 $HOME/osx-py3
. $HOME/osx-py3/bin/activate . $HOME/osx-py3/bin/activate
fi fi
pip install -U pip
pip install wheel