Debian Codegraph @

contrib/utilities/download_codecov

raw
1 #!/bin/bash
2 ## ------------------------------------------------------------------------
3 ##
4 ## SPDX-License-Identifier: LGPL-2.1-or-later
5 ## Copyright (C) 2018 by the deal.II authors
6 ##
7 ## This file is part of the deal.II library.
8 ##
9 ## Part of the source code is dual licensed under Apache-2.0 WITH
10 ## LLVM-exception OR LGPL-2.1-or-later. Detailed license information
11 ## governing the source code and code contributions can be found in
12 ## LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
13 ##
14 ## ------------------------------------------------------------------------
15
16 #
17 # This script downloads the global coverage report uploader for Codecov.
18 # If you are running the testsuite to create coverage information and
19 # the codecov uploader is present, there is also a report uploaded to
20 # https://codecov.io/gh/dealii/dealii.
21 #
22
23 PRG="$(cd "$(dirname "$0")" && pwd)/programs"
24 CODECOV_PATH="${PRG}/codecov"
25
26 if [ ! -d "$PRG" ]
27 then
28 echo "create folder $PRG"
29 mkdir "$PRG"
30 fi
31
32 # codecov
33 if [ ! -d "$CODECOV_PATH" ]
34 then
35 echo "Downloading codecov-bash."
36 mkdir "$CODECOV_PATH"
37 curl -s "https://codecov.io/bash" > $CODECOV_PATH/codecov-bash.sh
38 fi