File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,6 +63,6 @@ test-integration:
6363
6464upload-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
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ COPY dev_requirements.txt ${DRYCC_HOME_DIR}/dev_requirements.txt
1212
1313RUN 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 \
Original file line number Diff line number Diff line change @@ -15,4 +15,3 @@ gosu postgres pg_ctl -D "$PGDATA" start && ln -s /tmp/.s.PGSQL.5432 /var/run/pos
1515creating_rsa_key
1616python3 manage.py check
1717coverage run manage.py test --settings=api.settings.testing --noinput api
18- coverage report -m
Original file line number Diff line number Diff line change 66# fail hard and fast even on pipelines
77set -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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments