Skip to content

Commit

Permalink
Added coveralls debug on appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrocoan committed Aug 4, 2019
1 parent a8cd1b5 commit d6da5ab
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@ environment:
- PACKAGE: "debugtools"
SUBLIME_TEXT_VERSION : "3"

- COVERAGE: py36
# - COVERAGE: py36
- COVERAGE_COVERALLS: py36

- TOXENV: py27
- TOXENV: py34
- TOXENV: py35
- TOXENV: py36
- TOXENV: py37
# - TOXENV: py27
# - TOXENV: py34
# - TOXENV: py35
# - TOXENV: py36
# - TOXENV: py37


install:
- python --version
- pip --version
- pip list
- dir

Expand All @@ -36,11 +38,19 @@ install:
- IF %INSTALL_DEPENDENCIES%==true (pip install --disable-pip-version-check diff-match-patch)

# Install coverage tools
- IF "%COVERAGE%"=="py36" (python -m pip install --upgrade pip)
- IF "%COVERAGE%"=="py36" (pip install --disable-pip-version-check codecov )
- IF "%COVERAGE%"=="py36" (pip install --disable-pip-version-check coverage )
- IF "%COVERAGE%"=="py36" (pip install --disable-pip-version-check codacy-coverage )
- IF "%COVERAGE%"=="py36" (pip install --disable-pip-version-check python-coveralls)

- IF "%COVERAGE_COVERALLS%"=="py36" (python -m pip install --upgrade pip)
- IF "%COVERAGE_COVERALLS%"=="py36" (pip install --disable-pip-version-check coveralls)

- python --version
- pip --version
- pip list
- dir

# Install Sublime Text tools
- ps: If((!$env:TOXENV) -and (!$env:COVERAGE)) {appveyor DownloadFile "https://raw.githubusercontent.com/evandrocoan/UnitTesting/master/sbin/appveyor.ps1"}
Expand All @@ -66,9 +76,14 @@ test_script:
- IF "%COVERAGE%"=="py36" (coverage xml -o coverage.xml)
- IF "%COVERAGE%"=="py36" (where codecov)
- IF "%COVERAGE%"=="py36" (where coverage)
- IF "%COVERAGE%"=="py36" (where coveralls)
- IF "%COVERAGE%"=="py36" (where python-codacy-coverage)

- IF "%COVERAGE_COVERALLS%"=="py36" (coverage run .\tests\run_tests.py)
- IF "%COVERAGE_COVERALLS%"=="py36" (coverage report -m)
- IF "%COVERAGE_COVERALLS%"=="py36" (coverage --version)
- IF "%COVERAGE_COVERALLS%"=="py36" (coverage xml -o coverage.xml)
- IF "%COVERAGE_COVERALLS%"=="py36" (where coverage)


on_finish:
- python --version
Expand All @@ -79,3 +94,4 @@ on_finish:
- IF "%COVERAGE%"=="py36" (codecov -f coverage.xml -t %CODECOV_TOKEN%)
- IF "%COVERAGE%"=="py36" (python-codacy-coverage -r coverage.xml)

- IF "%COVERAGE_COVERALLS%"=="py36" (coveralls)

0 comments on commit d6da5ab

Please sign in to comment.