Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[framework] build: add Jenkinsfile for PR automation #116

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
}
}
}
}
32 changes: 32 additions & 0 deletions libraries/contracts/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
}
}
}
}
32 changes: 32 additions & 0 deletions libraries/ui-components/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
}
}
}
}
32 changes: 32 additions & 0 deletions runtime/backend/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
}
}
}
}
32 changes: 32 additions & 0 deletions runtime/dapp-frontend-vue/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
}
}
}
}