Commit 78855f4c authored by Millian Poquet's avatar Millian Poquet
Browse files

ci: use codecov from nixpkgs, not curl random url

parent 4c8281ed
......@@ -27,7 +27,7 @@ build_and_test:
- nix-shell --pure -A coverage-report ${NIX_ARGS} --command ${CI_PROJECT_DIR}/ci/list-store-paths-for-cachix.bash | cachix push batsim
- nix-build -A coverage-report ${NIX_ARGS} && cp -rL result ./coverage_report
# Send coverage results to codecov.io
- bash <(curl -s https://codecov.io/bash) -f ./coverage_report/coveralls.json
- nix-shell -A codecov_push_shell --command 'codecov -f ./coverage_report/coveralls.json'
artifacts:
when: always
expire_in: 8 hours
......
......@@ -109,6 +109,16 @@ let
[pkgs.cmake pkgs.qtcreator];
};
# Shell used by CI to push coverage results on codecov's infrastructure.
codecov_push_shell = pkgs.mkShell rec {
name = "codecov-push-shell";
buildInputs = [
pkgs.curl
pkgs.git
pkgs.python3Packages.codecov
];
};
# Batsim integration tests.
integration_tests = pkgs.stdenv.mkDerivation rec {
pname = "batsim-integration-tests";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment