Skip to content

Commit

Permalink
Kotlin codecov (#8)
Browse files Browse the repository at this point in the history
Corrected code coverage on all builds:

    uploading each codecoverage report at the after_success of each of the builds, specifying the root folder:
        For the C++, the repo root was chosen;
        For the Python, the leetCodeSolutionsPython folder was chosen;
        For the Kotlin, the source files folder had to be chosen in order fot the coverage to work properly.
  • Loading branch information
hpnog committed Jan 2, 2020
1 parent 4457441 commit 0f01459
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Expand Up @@ -19,10 +19,15 @@ matrix:
- make
- ./bin/solutions -test
- ./bin/unit_tests
after_success:
- bash <(curl -s https://codecov.io/bash) -R ../
- make clean
- language: java
script:
- cd leetCodeSolutionsKotlin
- ./gradlew build
after_success:
- bash <(curl -s https://codecov.io/bash) -R ./src/main/kotlin
- language: python
python:
- "3.5"
Expand All @@ -35,6 +40,8 @@ matrix:
script:
- cd leetCodeSolutionsPython
- python -m pytest --cov-report term --cov .
after_success:
- bash <(curl -s https://codecov.io/bash) -R .

before_install:
- chmod +x ./leetCodeSolutionsKotlin/gradlew
Expand All @@ -44,8 +51,4 @@ env:
# Token provided in settings of codecov
# - CODECOV_TOKEN=:bf2b7da2-833f-47d6-8660-d149faed8097
- CODECOV_TOKEN="bf2b7da2-833f-47d6-8660-d149faed8097"
after_success:
# Run bash script to upload code coverage files
- bash <(curl -s https://codecov.io/bash)
- make clean

0 comments on commit 0f01459

Please sign in to comment.