Integrate cartshare tests (#425)

This commit is contained in:
Raphael Michel
2017-03-12 00:32:33 +01:00
committed by GitHub
parent 96c61a073c
commit be1cbfeb91
2 changed files with 17 additions and 0 deletions

View File

@@ -39,3 +39,18 @@ if [ "$1" == "tests-cov" ]; then
make all compress make all compress
coverage run -m py.test --rerun 5 tests && codecov coverage run -m py.test --rerun 5 tests && codecov
fi fi
if [ "$1" == "plugins" ]; then
pip3 install -r src/requirements.txt -Ur src/requirements/dev.txt -r src/requirements/py34.txt
cd src
python setup.py develop
make all compress
pushd ~
git clone --depth 1 https://github.com/pretix/pretix-cartshare.git
cd pretix-cartshare
python setup.py develop
make
py.test --rerun 5 tests
popd
fi

View File

@@ -32,6 +32,8 @@ matrix:
env: JOB=tests PRETIX_CONFIG_FILE=tests/travis_postgres.cfg env: JOB=tests PRETIX_CONFIG_FILE=tests/travis_postgres.cfg
- python: 3.4 - python: 3.4
env: JOB=style env: JOB=style
- python: 3.4
env: JOB=plugins
- python: 3.4 - python: 3.4
env: JOB=tests-cov env: JOB=tests-cov
addons: addons: