Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc1d47d + ac0e468 commit dc7f897Copy full SHA for dc7f897
Makefile
@@ -51,8 +51,7 @@ test-integration:
51
pytest -m integration
52
53
upload-coverage:
54
- pytest -m unit --cov rebirthdb --cov-report xml
55
- python-codacy-coverage -r coverage.xml
+ @sh scripts/upload-coverage.sh
56
57
clean:
58
@rm -rf \
@@ -77,4 +76,3 @@ package: prepare
77
76
78
publish:
79
cd ${BUILD_DIR} && python ./setup.py register upload
80
-
scripts/upload-coverage.sh
@@ -0,0 +1,8 @@
1
+if [ "${TRAVIS_PULL_REQUEST}" != "" ]; then
2
+ if [ "${CODACY_PROJECT_TOKEN}" = "" ]; then
3
+ echo "Skipping coverage upload for PR or missing CODACY_PROJECT_TOKEN"
4
+ exit;
5
+ fi
6
+fi
7
+pytest -m unit --cov rebirthdb --cov-report xml
8
+python-codacy-coverage -r coverage.xml
0 commit comments