Skip to content

Commit adf93ca

Browse files
committed
set only husky if not CI
1 parent 5543087 commit adf93ca

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Jenkinsfile-itest

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
node('docker') {
2+
environment {
3+
CI = 'true'
4+
}
25
stage('Clone') {
36
cleanWs()
47
checkoutInfo = checkout(scm)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "iExec",
55
"license": "Apache-2.0",
66
"scripts": {
7-
"prepare": "husky",
7+
"prepare": "if [ \"$CI\" != \"true\" ]; then husky; fi",
88
"codegen": "graph codegen subgraph.template.yaml",
99
"test": "npm run codegen && graph test",
1010
"test-docker": "npm run codegen && docker run -it --rm -v $(pwd):/matchstick/subgraph rainprotocol/matchstick:main",

0 commit comments

Comments
 (0)