Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
compile on prepublish and run lint (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto authored and Arachnid committed Jul 18, 2018
1 parent dacf22a commit 1ba3bd7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
9 changes: 9 additions & 0 deletions .soliumrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "solium:all",
"rules": {
"indentation": ["error", 4],
"quotes": ["error", "double"],
"arg-overflow": "off",
"blank-lines": "off"
}
}
24 changes: 14 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
language: node_js
sudo: required

dist: trusty

language: node_js

node_js:
- "8"

env:
- CXX=g++-4.8
- TASK=test
- TASK=lint
matrix:
fast_finish: true
allow_failures:
- env: TASK=lint
script:
- npm run $TASK

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
notifications:
email: false
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "0.1.1",
"description": "Implementations for registrars and local resolvers for the Ethereum Name Service",
"scripts": {
"test": "truffle test"
"test": "truffle test",
"lint": "solium --dir ./contracts",
"prepublishOnly": "truffle compile && truffle networks --clean"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 1ba3bd7

Please sign in to comment.