Skip to content

Commit 4a19e1b

Browse files
author
Filip Schouwenaars
committed
fix coverage report
1 parent 0cf78d5 commit 4a19e1b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.coveragerc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[run]
2-
source=pythonwhat
2+
source=pythonwhat
3+
omit=*tests*

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ before_install:
77
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin dockerhub.datacamp.com:443
88
- docker build --build-arg GH_TOKEN=$GH_TOKEN -t local/pythonwhat .
99

10-
script: docker run -it local/pythonwhat /bin/bash -c "pytest --cov=./ && codecov --token=$CODECOV_TOKEN"
10+
script: docker run -it local/pythonwhat /bin/bash -c "pip3 install -e . && pytest --cov=./ && codecov --token=$CODECOV_TOKEN"
1111
deploy:
1212
provider: pypi
1313
user: machow

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ WORKDIR /usr/local/pkg
77

88
COPY . pythonwhat/
99
RUN pip3 install -r pythonwhat/requirements.txt
10-
RUN pip3 install ./pythonwhat
1110
RUN pip3 install protobackend
12-
RUN git clone https://[email protected]/datacamp/pythonbackend.git && pip3 install ./pythonbackend && rm -rf pythonbackend
11+
RUN git clone https://[email protected]/datacamp/pythonbackend.git && pip3 install --no-dependencies ./pythonbackend && rm -rf pythonbackend
1312

1413
WORKDIR /usr/local/pkg/pythonwhat
1514
RUN rm -rf tests/__pycache__

0 commit comments

Comments
 (0)