Browse Source

Testing out coveralls.io

Hamilton Turner 11 years ago
parent
commit
ad264df8d8
2 changed files with 6 additions and 2 deletions
  1. 3 0
      .gitignore
  2. 3 2
      .travis.yml

+ 3 - 0
.gitignore

@@ -72,3 +72,6 @@ beego/pkg/*
 
 # urweb
 urweb/*.exe
+
+# storage file for https://coveralls.io/
+.coverage

+ 3 - 2
.travis.yml

@@ -21,12 +21,13 @@ before_install:
   - chmod 600 /home/travis/.ssh/authorized_keys
 install:
   - pip install docker-py
+  - pip install coveralls
 before_script:
   - echo about to script
 script: 
-  - ./toolset/run-tests.py -s localhost -c localhost -d localhost -u travis -i /home/travis/.ssh/id_rsa --database-user travis --database-host localhost --database-identity-file /home/travis/.ssh/id_rsa --mode verify --log DEBUG --install server --type json --test $TEST
+  - coverage run --omit installs,results toolset/run-tests.py -s localhost -c localhost -d localhost -u travis -i /home/travis/.ssh/id_rsa --database-user travis --database-host localhost --database-identity-file /home/travis/.ssh/id_rsa --mode verify --log DEBUG --install server --type json --test $TEST
 after_success:
-  - echo Yay
+  - coveralls
 after_failure:
   - echo Nien
 after_script: