Skip to content

Commit df7b401

Browse files
committed
💚 update travis matrix
1 parent 89ea0f7 commit df7b401

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.moban.d/custom_travis.yml.jj2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ python:
3434
- 3.7
3535
{%endblock%}
3636

37-
{% block custom_install %} - pip install Django==$DJANGO_VERSION
37+
{% block custom_install %} - if [ -n $DJANGO_VERSION ]; then
38+
pip install Django==$DJANGO_VERSION
39+
fi
3840
{% endblock%}

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ jobs:
6363
stage: test
6464

6565
before_install:
66-
- pip install Django==$DJANGO_VERSION
66+
- if [ -n $DJANGO_VERSION ]; then
67+
pip install Django==$DJANGO_VERSION
68+
fi
6769
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
6870
mv min_requirements.txt requirements.txt ;
6971
fi

0 commit comments

Comments
 (0)