Browse Source

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

devuan-deployment
Paul Gevers 2 years ago
parent
commit
e95315e57c
No known key found for this signature in database GPG Key ID: 9C5C99EB05BD750A
2 changed files with 6 additions and 2 deletions
  1. +5
    -1
      .travis.yml
  2. +1
    -1
      ci/run-everything-and-upload-to-codecov.io.sh

+ 5
- 1
.travis.yml 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

+ 1
- 1
ci/run-everything-and-upload-to-codecov.io.sh 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

Loading…
Cancel
Save