Adding .travis.yml

This commit is contained in:
Lucas Cimon
2017-11-30 01:12:15 +01:00
parent 6d5ee4ac14
commit 98ffe5e6a7
4 changed files with 37 additions and 7 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
# BEWARE ! Makefiles require the use of hard tabs
NODE_BIN := node_modules/.bin
.PHONY: install check test
install:
npm install csslint eslint eslint-config-strict eslint-plugin-filenames htmlhint htmllint-cli jscs
pip install pre-commit
pre-commit install
check:
$(NODE_BIN)/eslint $(git ls-files [ grep '\.js$')
$(NODE_BIN)/jscs $(git ls-files [ grep '\.js$')
$(NODE_BIN)/csslint --ignore=order-alphabetical $(git ls-files [ grep '\.css$')
pre-commit run --all-files
test:
./test_ludochaordic.sh