Skip to content
Snippets Groups Projects
Commit 52830fa0 authored by Ned Batchelder's avatar Ned Batchelder
Browse files

No need for three-line shell scripts; use make

parent 44381d92
No related branches found
No related tags found
No related merge requests found
.PHONY: help all install-test install compile-sass quality test upgrade
help: ## display this help message
@echo "Please use \`make <target>' where <target> is one of"
@grep '^[a-zA-Z]' $(MAKEFILE_LIST) | sort | awk -F ':.*?## ' 'NF==2 {printf "\033[36m %-25s\033[0m %s\n", $$1, $$2}'
all: install compile-sass quality test all: install compile-sass quality test
install-test: install-test:
...@@ -5,14 +11,17 @@ install-test: ...@@ -5,14 +11,17 @@ install-test:
install: install-test install: install-test
compile-sass: compile-sass: ## Compile the Sass assets
./scripts/sass.sh sass --no-cache --style compressed ./lti_consumer/static/sass/student.scss ./lti_consumer/static/css/student.css
quality: quality: ## Run the quality checks
./scripts/quality.sh pep8 --config=.pep8 lti_consumer
pylint --rcfile=pylintrc lti_consumer
test: test: ## Run the tests
./scripts/test.sh mkdir -p var
rm -rf .coverage
python -m coverage run --rcfile=.coveragerc ./test.py --noinput
upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade
upgrade: ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in upgrade: ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in
......
#!/usr/bin/env bash
set -e
pep8 --config=.pep8 lti_consumer
pylint --rcfile=pylintrc lti_consumer
#!/usr/bin/env bash
set -e
# Student view sass
sass --no-cache --style compressed ./lti_consumer/static/sass/student.scss ./lti_consumer/static/css/student.css
#!/usr/bin/env bash
set -e
mkdir -p var
rm -rf .coverage
python -m coverage run --rcfile=.coveragerc ./test.py $1 --noinput
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment