codecov: try alternative approach to get codecov data out of the docker container

This commit is contained in:
Paul Gevers 2018-03-21 20:58:49 +01:00
parent 5dfde99fe6
commit e95315e57c
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A
2 changed files with 6 additions and 2 deletions

View File

@ -24,7 +24,11 @@ install:
script:
# https://docs.codecov.io/docs/testing-with-docker
- ci_env=$(bash <(curl -s https://codecov.io/env)) ; echo $ci_env ; docker run $ci_env britney /bin/sh -c "export CI=true ; ci/run-everything-and-upload-to-codecov.io.sh"
- mkdir shared
- docker run -v "$PWD/shared:/shared" britney /bin/sh -c "export CI=true ; ci/run-everything-and-upload-to-codecov.io.sh"
after-success:
- bash <(curl -s https://codecov.io/bash)
#notifications:
# email: false

View File

@ -31,7 +31,7 @@ if [ $err = 0 ] ; then
echo
python3-coverage xml -i || true
echo
bash <(curl -s https://codecov.io/bash) || true
mv .coverage shared
fi
exit $err