diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..5d12d0b2 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,39 @@ +pipeline { + agent any + stages { + stage('Download dependencies') { + steps { + echo 'Downloading dependencies...' + sh 'npm install' + } + } + + stage('Lerna bootstrap') { + steps { + echo 'Bootstrapping lerna...' + sh './node_modules/.bin/lerna bootstrap' + } + } + + stage('Run linter checks') { + steps { + echo 'Running linter checks...' + sh 'npm run lint' + } + } + + stage('Build software') { + steps { + echo 'Running compiler...' + sh 'npm run build' + } + } + + stage('Run unit tests') { + steps { + echo 'Running unit tests...' + sh 'npm run test' + } + } + } +} \ No newline at end of file diff --git a/libraries/contracts/Jenkinsfile b/libraries/contracts/Jenkinsfile new file mode 100644 index 00000000..aef46575 --- /dev/null +++ b/libraries/contracts/Jenkinsfile @@ -0,0 +1,32 @@ +pipeline { + agent any + stages { + stage('Download dependencies') { + steps { + echo 'Downloading dependencies...' + sh 'npm install' + } + } + + stage('Run linter checks') { + steps { + echo 'Running linter checks...' + sh 'npm run lint' + } + } + + stage('Build software') { + steps { + echo 'Running compiler...' + sh 'npm run build' + } + } + + stage('Run unit tests') { + steps { + echo 'Running unit tests...' + sh 'npm run test' + } + } + } +} \ No newline at end of file diff --git a/libraries/ui-components/Jenkinsfile b/libraries/ui-components/Jenkinsfile new file mode 100644 index 00000000..aef46575 --- /dev/null +++ b/libraries/ui-components/Jenkinsfile @@ -0,0 +1,32 @@ +pipeline { + agent any + stages { + stage('Download dependencies') { + steps { + echo 'Downloading dependencies...' + sh 'npm install' + } + } + + stage('Run linter checks') { + steps { + echo 'Running linter checks...' + sh 'npm run lint' + } + } + + stage('Build software') { + steps { + echo 'Running compiler...' + sh 'npm run build' + } + } + + stage('Run unit tests') { + steps { + echo 'Running unit tests...' + sh 'npm run test' + } + } + } +} \ No newline at end of file diff --git a/runtime/backend/Jenkinsfile b/runtime/backend/Jenkinsfile new file mode 100644 index 00000000..aef46575 --- /dev/null +++ b/runtime/backend/Jenkinsfile @@ -0,0 +1,32 @@ +pipeline { + agent any + stages { + stage('Download dependencies') { + steps { + echo 'Downloading dependencies...' + sh 'npm install' + } + } + + stage('Run linter checks') { + steps { + echo 'Running linter checks...' + sh 'npm run lint' + } + } + + stage('Build software') { + steps { + echo 'Running compiler...' + sh 'npm run build' + } + } + + stage('Run unit tests') { + steps { + echo 'Running unit tests...' + sh 'npm run test' + } + } + } +} \ No newline at end of file diff --git a/runtime/dapp-frontend-vue/Jenkinsfile b/runtime/dapp-frontend-vue/Jenkinsfile new file mode 100644 index 00000000..aef46575 --- /dev/null +++ b/runtime/dapp-frontend-vue/Jenkinsfile @@ -0,0 +1,32 @@ +pipeline { + agent any + stages { + stage('Download dependencies') { + steps { + echo 'Downloading dependencies...' + sh 'npm install' + } + } + + stage('Run linter checks') { + steps { + echo 'Running linter checks...' + sh 'npm run lint' + } + } + + stage('Build software') { + steps { + echo 'Running compiler...' + sh 'npm run build' + } + } + + stage('Run unit tests') { + steps { + echo 'Running unit tests...' + sh 'npm run test' + } + } + } +} \ No newline at end of file