summaryrefslogtreecommitdiff
path: root/tools/travis/script.sh
blob: a5494a9e747a192769be7bcf43a4df87550d3746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

set -e

section "script section"

# Run pytest.
if [[ "${REPORT_COVERAGE}" == 1 ]]; then
  pytest --cov=networkx --runslow --doctest-modules --pyargs networkx
else
  pytest --doctest-modules --durations=10 --pyargs networkx
fi

section_end "script section"

set +e