فهرست منبع

Fix coveraged folder name

Lucas Villeneuve 5 سال پیش
والد
کامیت
771a34dfc6
2فایلهای تغییر یافته به همراه15 افزوده شده و 2 حذف شده
  1. 13 0
      .coveragerc
  2. 2 2
      .travis.yml

+ 13 - 0
.coveragerc

@@ -0,0 +1,13 @@
+[run]
+branch = True
+source = myanimebot
+
+[report]
+exclude_lines =
+    if self.debug:
+    pragma: no cover
+    raise NotImplementedError
+    if __name__ == .__main__.:
+ignore_errors = True
+omit =
+    tests/*

+ 2 - 2
.travis.yml

@@ -23,6 +23,6 @@ install:
   - sed 's/token = 123456789ABCDEF987654321FEDCBA/token = '"$DISCORD_TOKEN"'/' myanimebot.example.conf > myanimebot.conf
   - mkdir "logs"
 script:
-  - python -m pytest tests --cov-report=xml --cov=deeptabular # run tests
+  - python -m pytest tests --cov=. # run tests
 after_success:
-  - codecov # submit coverage
+  - bash <(curl -s https://codecov.io/bash) # submit coverage