diff --git a/circle.yml b/circle.yml index 5741c743..25f419c4 100644 --- a/circle.yml +++ b/circle.yml @@ -34,10 +34,14 @@ jobs: # install deps - run: npm i # lint: - - run: npm run lint + - run: npm run ci:lint # test! - run: | export PATH="$HOME/.poetry/bin:$PATH" export LC_ALL=C.UTF-8 export LANG=C.UTF-8 npm run test + - store_test_results: + path: ~/reports + - store_artifacts: + path: ~/reports diff --git a/package.json b/package.json index aba8b96f..dc887bbd 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "main": "index.js", "bin": {}, "scripts": { + "ci:lint": "eslint *.js lib/*.js --format junit --output-file ~/reports/eslint.xml && prettier -c index.js lib/*.js", "test": "node test.js", "lint": "eslint *.js lib/*.js && prettier -l index.js lib/*.js || (echo need formatting ; exit 1)", "format": "prettier --write index.js lib/*.js test.js"