From adf93ca1a436a2515474ba9bfaaae9dc97a2b20a Mon Sep 17 00:00:00 2001 From: Gabriel Fournier Date: Thu, 12 Dec 2024 11:12:24 +0100 Subject: [PATCH] set only husky if not CI --- Jenkinsfile-itest | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile-itest b/Jenkinsfile-itest index a077faa..db5f2fa 100644 --- a/Jenkinsfile-itest +++ b/Jenkinsfile-itest @@ -1,4 +1,7 @@ node('docker') { + environment { + CI = 'true' + } stage('Clone') { cleanWs() checkoutInfo = checkout(scm) diff --git a/package.json b/package.json index 5beb2a7..f5705f2 100644 --- a/package.json +++ b/package.json @@ -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",