From 224b5d87dac6a99476adebb9a63a71d060e7d202 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 17 May 2017 15:18:57 +0300 Subject: [PATCH] Fix eslint dependency --- .gitlab-ci.yml | 13 +++++++++---- requirements.txt | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b938d98..a4345dd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,10 +26,15 @@ test: script: - python manage.py test -lint: +pep8: stage: lint - variables: - DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB" script: - - pep8 --count && eslint . + - pep8 --count + +eslint: + image: node:7.10.0 + stage: lint + script: + - npm install -g eslint + - eslint . diff --git a/requirements.txt b/requirements.txt index ff27176..49a22f6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,3 +20,4 @@ uWSGI==2.0.14 psycopg2==2.7.1 django-bootstrap3==8.2.3 django-tables2==1.6.1 +pep8==1.7.0