Skip to content

Commit

Permalink
ci/travis: run codecov inside docker
Browse files Browse the repository at this point in the history
Running it outside seems to lead to wrong results. Try inside.
  • Loading branch information
gicmo committed Sep 3, 2019
1 parent a459b36 commit 81d3e3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ script:
- docker run -e -t -v `pwd`:/src -v `pwd`/build-$OS:/build bolt-$OS ./contrib/docker-build.sh

after_success:
- bash <(curl -s https://codecov.io/bash) -f build-fedora/meson-logs/coverage.info
- if [[ "$OS" == "fedora" ]]; then
CE=`bash <(curl -s https://codecov.io/env)`;
curl -o codecov https://codecov.io/bash && chmod a+x codecov;
docker run $CE -e OS -t -v `pwd`:/src -v `pwd`/build-$OS:/build bolt-$OS ./codecov -f /build/meson-logs/coverage.info;
fi

0 comments on commit 81d3e3f

Please sign in to comment.