Skip to content

Commit

Permalink
views.py: Fix typo referencing wrong Travis env variable
Browse files Browse the repository at this point in the history
Fix typo that was causing Travis to fail on master.
Specify specific commit for trav in requirements.txt
to prevent this from happening again.

Fixes #226
  • Loading branch information
kx-chen committed Nov 28, 2018
1 parent 2a5d9bd commit b95db60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .moban.yaml
Expand Up @@ -23,7 +23,7 @@ dependencies:
- django-eventtools
- git+https://gitlab.com/gitmate/open-source/IGitt.git@1fa5a0a21ea4fb8739d467c06972f748717adbdc
- requests
- git+https://github.com/andrewda/trav.git
- git+https://github.com/andrewda/trav.git@ce805d12d3d1db0a51b1aa26bba9cd9ecc0d96b8
- python-dateutil
- pillow
- ruamel.yaml
Expand Down
2 changes: 1 addition & 1 deletion community/views.py
Expand Up @@ -17,7 +17,7 @@ class HomePageView(TemplateView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['isTravis'] = Travis.TRAVIS
context['travisLink'] = Travis.BUILD_WEB_URL
context['travisLink'] = Travis.TRAVIS_BUILD_WEB_URL

print('Running on Travis: {}, build link: {}'.format(
context['isTravis'],
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -5,7 +5,7 @@ django-distill
django-eventtools
git+https://gitlab.com/gitmate/open-source/IGitt.git@1fa5a0a21ea4fb8739d467c06972f748717adbdc
requests
git+https://github.com/andrewda/trav.git
git+https://github.com/andrewda/trav.git@ce805d12d3d1db0a51b1aa26bba9cd9ecc0d96b8
python-dateutil
pillow
ruamel.yaml
Expand Down

0 comments on commit b95db60

Please sign in to comment.