Parallelize tests

Fixes #163.
This commit is contained in:
Nico Alt 2017-08-01 09:43:47 +02:00
parent c88e18d722
commit 50f8a51393
No known key found for this signature in database
GPG Key ID: 95A0DAF7DBC7B548
5 changed files with 26 additions and 7 deletions

View File

@ -10,7 +10,17 @@ before_script:
- pip3 install -r requirements-dev.txt
- npm install --user
test:
after_script:
- ./tests/assert-test-confinement.sh
pep8:
script:
- ./run-tests.sh
- ./tests/assert-test-confinement.sh
- ./tests/test-pep8.sh
pylint:
script:
- ./tests/test-pylint.sh
units:
script:
- ./tests/test-units.sh

View File

@ -1,7 +1,6 @@
#!/usr/bin/env bash
pep8 --show-pep8 --max-line-length=100 --exclude=setup.py,.git,build,migrations . &&
pylint --disable=C,R,fixme repomaker &&
coverage3 run --source='repomaker' --omit="*/wsgi.py","repomaker/__init__.py" manage.py test &&
coverage3 report &&
./tests/test-pep8.sh &&
./tests/test-pylint.sh &&
./tests/test-units.sh &&
echo "All tests ran successfully! \o/"

3
tests/test-pep8.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
pep8 --show-pep8 --max-line-length=100 --exclude=setup.py,.git,build,migrations .

3
tests/test-pylint.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
pylint --disable=C,R,fixme repomaker

4
tests/test-units.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
coverage3 run --source='repomaker' --omit="*/wsgi.py","repomaker/__init__.py" manage.py test &&
coverage3 report