Moving solidity lint check to bazel / buildkite (#629)

* Add solium dependency

* gazelle

* Remove step from travis
This commit is contained in:
Preston Van Loon 2018-10-07 13:20:59 -04:00 committed by GitHub
parent 1c7af71774
commit cce5884aab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1554 additions and 13 deletions

4
.gitignore vendored
View File

@ -10,3 +10,7 @@ bazel-*
# Coverage outputs
coverage.txt
profile.out
# Nodejs
node_modules
yarn-error.log

0
.soliumignore Normal file
View File

View File

@ -16,19 +16,6 @@ matrix:
script:
- ./scripts/coverage.sh
- bash <(curl -s https://codecov.io/bash)
- language: node_js
os: linux
env:
- solidity
node_js:
- "lts/*"
before_install:
- npm install -g solium
install: true # Skip npm install.
script:
# Check solidity linter.
- solium -d contracts/
notifications:
email: false

View File

@ -28,6 +28,26 @@ load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories")
docker_repositories()
git_repository(
name = "build_bazel_rules_nodejs",
remote = "https://github.com/bazelbuild/rules_nodejs.git",
tag = "0.15.0",
)
load("@build_bazel_rules_nodejs//:package.bzl", "rules_nodejs_dependencies")
rules_nodejs_dependencies()
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories", "yarn_install")
node_repositories()
yarn_install(
name = "npm",
package_json = "//:package.json",
yarn_lock = "//:yarn.lock",
)
# This requires rules_docker to be fully instantiated before it is pulled in.
git_repository(
name = "io_bazel_rules_k8s",

8
package.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "prysm",
"version": "0.0.0",
"repository": "git@github.com:prysmaticlabs/prysm.git",
"devDependencies": {
"solium": "^1.1.8"
}
}

1522
yarn.lock Normal file

File diff suppressed because it is too large Load Diff