Install addons-validator and configure it's path. Fixes #881

This commit is contained in:
Christopher Grebs 2015-11-20 09:08:15 +01:00
Родитель 441ed5f86e
Коммит 0734dbcf67
3 изменённых файлов: 12 добавлений и 5 удалений

Просмотреть файл

@ -61,3 +61,4 @@ ENV CLEANCSS_BIN /srv/olympia-node/node_modules/clean-css/bin/cleancss
ENV LESS_BIN /srv/olympia-node/node_modules/less/bin/lessc
ENV STYLUS_BIN /srv/olympia-node/node_modules/stylus/bin/stylus
ENV UGLIFY_BIN /srv/olympia-node/node_modules/uglify-js/bin/uglifyjs
ENV VALIDATOR_BIN /srv/olympia-node/node_modules/addons-validator/addons-validator

Просмотреть файл

@ -11,6 +11,7 @@
"clean-css": "2.0.x",
"less": "1.3.x",
"stylus": "0.32.x",
"uglify-js": "2.4.x"
"uglify-js": "2.4.x",
"addons-validator": "0.0.7"
}
}

Просмотреть файл

@ -54,10 +54,15 @@ ALLOW_SELF_REVIEWS = True
# will be the path to the `stylus` and `lessc` executables.
STYLUS_BIN = os.getenv('STYLUS_BIN', path('node_modules/stylus/bin/stylus'))
LESS_BIN = os.getenv('LESS_BIN', path('node_modules/less/bin/lessc'))
CLEANCSS_BIN = os.getenv('CLEANCSS_BIN',
path('node_modules/clean-css/bin/cleancss'))
UGLIFY_BIN = os.getenv('UGLIFY_BIN',
path('node_modules/uglify-js/bin/uglifyjs'))
CLEANCSS_BIN = os.getenv(
'CLEANCSS_BIN',
path('node_modules/clean-css/bin/cleancss'))
UGLIFY_BIN = os.getenv(
'UGLIFY_BIN',
path('node_modules/uglify-js/bin/uglifyjs'))
VALIDATOR_BIN = os.getenv(
'VALIDATOR_BIN',
path('node_modules/addons-validator/bin/addons-validator'))
# Locally we typically don't run more than 1 elasticsearch node. So we set
# replicas to zero.