Skip to content

Commit 8056cf1

Browse files
committed
more bash syntax cleaning
1 parent 89aa659 commit 8056cf1

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.ci/azure/run_tests.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,19 @@ test_args=""
1010

1111
source activate discretize-test
1212

13-
if ${do_doc}
14-
then
15-
if ${is_azure}
16-
then
13+
if [[ "$is_azure" == "true" ]]; then
14+
if [[ "$do_doc" == "true" ]]; then
1715
.ci/setup_headless_display.sh
1816
fi
1917
fi
20-
if ${do_cov}
21-
then
18+
if [[ "do_cov" == "true" ]]; then
2219
echo "Testing with coverage"
2320
test_args="--cov --cov-config=pyproject.toml $test_args"
2421
fi
2522

2623
pytest -vv $test_args
2724

28-
if ${do_cov}
29-
then
25+
if [[ "do_cov" == "true" ]]; then
3026
coverage xml
3127
fi
3228

.ci/azure/setup_env.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ else
2222
echo " - python="$PYTHON_VERSION >> environment_test_with_pyversion.yml
2323
fi
2424

25-
if [[ "$is_rc" == "true"]]; then
25+
if [[ "$is_rc" == "true" ]]; then
2626
sed -i '/^channels:/a\ - conda-forge/label/python_rc' environment_test_with_pyversion.yml
2727
fi
2828
conda env create --file environment_test_with_pyversion.yml
2929
rm environment_test_with_pyversion.yml
3030

3131
if [[ "$is_azure" == "true" ]]; then
32-
then
3332
source activate discretize-test
3433
pip install pytest-azurepipelines
3534
else

0 commit comments

Comments
 (0)