Skip to content

Commit

Permalink
after codecov success, clean config files and undo changes in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
agnesk92 committed Apr 30, 2020
1 parent 2b13c69 commit 37e2926
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 172 deletions.
Binary file removed .coverage
Binary file not shown.
13 changes: 3 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,10 @@ jobs:
include:
- name: PyTest With Coverage
script: docker run -ti -v "$PWD/shared:/shared" pyghost:v1.0 bash -c "pytest --cov=./ && mv coverage.xml /shared && ls /shared"
# script: docker run -ti -v "$PWD/shared:/shared" pyghost:v1.0 bash -c "pytest --cov=./ && mv coverage.txt shared"
# script: docker run -ti pyghost:v1.0 pytest --cov-report=xml --cov=./ tests/

after_success: #https://docs.codecov.io/docs/testing-with-docker
# - pip install codecov
# - codecov
# - docker run -ti pyghost:v1.0 codecov
# - docker run -ti pyghost:v1.0 bash <(curl -s https://codecov.io/bash)
# - docker run -ti pyghost:v1.0 bash -c "curl -s https://codecov.io/bash | bash"
after_success:
- curl -s https://codecov.io/bash | bash


notifications:
email: [email protected]
#notifications:
# email: [email protected]
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ COPY . /app
RUN pip3.7 install -r requirements.txt

# Change from root user for security reasons
#RUN useradd -m -U -s /bin/bash pygame
#USER pygame
RUN useradd -m -U -s /bin/bash pygame
USER pygame
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tests:
pytest --doctest-modules .
pytest
docker run -ti pyghost-ubuntu:v2.0 pytest --doctest-modules .
docker run -ti pyghost-ubuntu:v2.0 pytest

158 changes: 0 additions & 158 deletions coverage.xml

This file was deleted.

0 comments on commit 37e2926

Please sign in to comment.