Skip to content

Commit

Permalink
Merge 781bc99 into cad2137
Browse files Browse the repository at this point in the history
  • Loading branch information
phlax committed Apr 7, 2018
2 parents cad2137 + 781bc99 commit dfa4aff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
18 changes: 12 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ assets:
npm install && \
cd ${CWD}
cp ${JS_DIR}/node_modules/select2/dist/js/i18n/*.js ${JS_DIR}/select2_l10n/
${POOTLE_CMD} compilejsi18n
echo 'Compiling js i18n'
${POOTLE_CMD} compilejsi18n -v0
${POOTLE_CMD} webpack --extra=--display-error-details
mkdir -p ${ASSETS_DIR}

${POOTLE_CMD} collectstatic --noinput --clear -i node_modules -i .tox -i docs ${TAIL}
${POOTLE_CMD} assets build ${TAIL}
echo 'Collecting static'
${POOTLE_CMD} collectstatic -v0 --noinput --clear -i node_modules -i .tox -i docs ${TAIL}

echo 'Building assets'
${POOTLE_CMD} assets -v0 build ${TAIL}

chmod 664 ${ASSETS_DIR}.webassets-cache/*

Expand All @@ -46,11 +50,13 @@ travis-assets:
npm install && \
cd ${CWD}; \
cp ${JS_DIR}/node_modules/select2/dist/js/i18n/*.js ${JS_DIR}/select2_l10n/; \
${POOTLE_CMD} compilejsi18n; \
${POOTLE_CMD} compilejsi18n -v0; \
${POOTLE_CMD} webpack --dev --nowatch; \
mkdir -p ${ASSETS_DIR}; \
${POOTLE_CMD} collectstatic --noinput --clear -i node_modules -i .tox -i docs ${TAIL}; \
${POOTLE_CMD} assets build ${TAIL}; \
echo 'Collecting static'; \
${POOTLE_CMD} collectstatic -v0 --noinput --clear -i node_modules -i .tox -i docs ${TAIL}; \
echo 'Building assets'; \
${POOTLE_CMD} assets -v0 build ${TAIL}; \
chmod 664 ${ASSETS_DIR}.webassets-cache/*; \
fi

Expand Down
2 changes: 2 additions & 0 deletions requirements/host.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
makeyfile
docker-compose
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ commands=
pootle init
# Other linting
make travis-assets
python setup.py sdist
python setup.py --quiet sdist
make docs
python setup.py check --restructuredtext --strict
python setup.py build_mo
Expand Down

0 comments on commit dfa4aff

Please sign in to comment.