Skip to content

Commit

Permalink
Merge pull request #391 from JrGoodle/appveyor-coverage
Browse files Browse the repository at this point in the history
Add test coverage to AppVeyor
  • Loading branch information
JrGoodle committed Nov 22, 2017
2 parents 7722305 + 50cc979 commit 7188943
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 35 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
python3 -m venv venv
. venv/bin/activate
sudo pip install -r clowder/requirements.txt
sudo pip install https://github.com/JrGoodle/codecov-python/releases/download/encoding-fix/codecov-2.0.9-py2.py3-none-any.whl
- run:
name: run setup scripts
Expand Down Expand Up @@ -74,4 +75,5 @@ jobs:
name: upload code coverage results
command: |
coverage combine examples/cats examples/cocos2d-objc examples/llvm-projects examples/swift-projects
codecov
aws s3 cp .coverage "s3://clowder-coverage/coverage/circleci/$CIRCLE_BUILD_NUM/"
codecov -X gcov
59 changes: 26 additions & 33 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ environment:

install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- pip install -r clowder\requirements.txt
- pip install -e clowder
# # We need wheel installed to build wheels
# - "%PYTHON%\\python.exe -m pip install wheel"
- pip install https://github.com/JrGoodle/codecov-python/releases/download/encoding-fix/codecov-2.0.9-py2.py3-none-any.whl

build: off

Expand All @@ -37,34 +37,27 @@ test_script:
# to put the Python version you want to use on PATH.
# - "build.cmd %PYTHON%\\python.exe clowder\\setup.py"
- cd examples\cats
- clowder init https://github.com/jrgoodle/cats.git
- clowder herd
- clowder herd --parallel
- clowder status
- clowder branch
# - clowder forall -c 'copy NUL empty-file.txt'
- clowder diff
- clowder clean -g black-cats
- clowder stash -g cats
- clowder start new_branch
- clowder checkout master -g black-cats
- clowder reset
- clowder prune new_branch
- clowder save vWin
- clowder yaml

# after_test:
# # This step builds your wheels.
# # Again, you only need build.cmd if you're building C extensions for
# # 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct
# # interpreter
# - "build.cmd %PYTHON%\\python.exe setup.py bdist_wheel"

# artifacts:
# # bdist_wheel puts your built wheel in the dist directory
# - path: dist\*

#on_success:
# You can use this step to upload your artifacts to a public website.
# See Appveyor's documentation for more details. Or you can simply
# access your wheels from the Appveyor "artifacts" tab for your build.
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app init https://github.com/jrgoodle/cats.git
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app herd
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app herd --parallel
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app status
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app branch
# - coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app forall -c 'copy NUL empty-file.txt'
# - coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app forall --parallel -c 'copy NUL empty-file.txt'
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app diff
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app clean -g black-cats
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app stash -g cats
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app start new_branch
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app checkout master -g black-cats
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app reset
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app reset --parallel
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app prune new_branch
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app save vWin
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app sync --parallel
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app yaml

after_test:
# Combine and submit test coverage results
- cd %APPVEYOR_BUILD_FOLDER%
- coverage combine examples\cats
- codecov -X gcov
1 change: 0 additions & 1 deletion clowder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
argcomplete>=1.9.0
awscli>=1.11.186
cement>=2.10.2
codecov>=2.0.9
colorama>=0.3.9
coverage>=4.4.2
GitPython>=2.1.0
Expand Down
1 change: 1 addition & 0 deletions script/travis/install
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
fi

sudo $PIP install -r clowder/requirements.txt
sudo $PIP install https://github.com/JrGoodle/codecov-python/releases/download/encoding-fix/codecov-2.0.9-py2.py3-none-any.whl

0 comments on commit 7188943

Please sign in to comment.