Skip to content

Commit

Permalink
set only husky if not CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec committed Dec 12, 2024
1 parent 5543087 commit adf93ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Jenkinsfile-itest
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
node('docker') {
environment {
CI = 'true'
}
stage('Clone') {
cleanWs()
checkoutInfo = checkout(scm)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "iExec",
"license": "Apache-2.0",
"scripts": {
"prepare": "husky",
"prepare": "if [ \"$CI\" != \"true\" ]; then husky; fi",
"codegen": "graph codegen subgraph.template.yaml",
"test": "npm run codegen && graph test",
"test-docker": "npm run codegen && docker run -it --rm -v $(pwd):/matchstick/subgraph rainprotocol/matchstick:main",
Expand Down

0 comments on commit adf93ca

Please sign in to comment.