Skip to content

Commit 9910b91

Browse files
committed
chore(passport): use latest codecov cli version
1 parent 630bbd6 commit 9910b91

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ test-integration:
6363

6464
upload-coverage:
6565
$(eval CI_ENV := $(shell curl -s https://codecov.io/env | bash))
66-
podman run ${CI_ENV} -v ${CURDIR}:/test -w /test/rootfs ${IMAGE}.test /test/rootfs/bin/upload-coverage
66+
podman run ${CI_ENV} -v ${CURDIR}:/test -w /test/rootfs -e CODECOV_TOKEN=${CODECOV_TOKEN} ${IMAGE}.test /test/rootfs/bin/upload-coverage
6767

6868
.PHONY: check-kubectl check-podman build podman-build podman-build-test deploy clean commit-hook full-clean test test-style test-unit test-functional test-integration upload-coverage

rootfs/Dockerfile.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ COPY dev_requirements.txt ${DRYCC_HOME_DIR}/dev_requirements.txt
1212

1313
RUN buildDeps='gcc rustc cargo libffi-dev musl-dev libldap2-dev libsasl2-dev'; \
1414
install-packages ldap-utils mercurial ca-certificates openssl git $buildDeps \
15+
&& curl -SsL https://cli.codecov.io/latest/$([ $(dpkg --print-architecture) == "arm64" ] && echo linux-arm64 || echo linux)/codecov -o /usr/local/bin/codecov \
16+
&& chmod +x /usr/local/bin/codecov \
1517
&& install-stack python $PYTHON_VERSION \
1618
&& install-stack postgresql $POSTGRES_VERSION \
1719
&& install-stack gosu $GOSU_VERSION && . init-stack \

rootfs/bin/test-unit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ gosu postgres pg_ctl -D "$PGDATA" start && ln -s /tmp/.s.PGSQL.5432 /var/run/pos
1515
creating_rsa_key
1616
python3 manage.py check
1717
coverage run manage.py test --settings=api.settings.testing --noinput api
18-
coverage report -m

rootfs/bin/upload-coverage

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
# fail hard and fast even on pipelines
77
set -eou pipefail
88

9-
codecov --required
9+
coverage report -m > coverage.txt
10+
11+
if [[ -n $CODECOV_TOKEN ]]; then
12+
codecov upload-process --plugin=noop -t "$CODECOV_TOKEN"
13+
fi

rootfs/dev_requirements.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# test module
22
# test
33
# Run "make test-unit" for the % of code exercised during tests
4-
coverage==7.4.4
4+
coverage==7.6.1
55

66
# Run "make test-style" to check python syntax and style
7-
flake8==7.0.0
8-
9-
# code coverage report at https://codecov.io/github/drycc/passport
10-
codecov==2.1.13
7+
flake8==7.1.1
118

129
# mock out python-requests, mostly k8s
13-
requests-mock==1.11.0
10+
requests-mock==1.12.1

0 commit comments

Comments
 (0)