mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
16 lines
354 B
Bash
Executable File
16 lines
354 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
ulimit -n 2048
|
|
|
|
nosetests --cover-inclusive --cover-erase --cover-package=dvc --with-coverage
|
|
|
|
if [ "$1" = "report" ]; then
|
|
if [ -z "$CODECLIMATE_REPO_TOKEN" ]; then
|
|
echo "Error: CODECLIMATE_REPO_TOKEN is not defined! Reporting faied."
|
|
else
|
|
codeclimate-test-reporter --token $CODECLIMATE_REPO_TOKEN
|
|
fi
|
|
fi
|
|
|