Skip to content
Open
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
25 changes: 24 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,30 @@ pipeline {
// Build the project using yarn
sh 'yarn install'
sh 'yarn run tslint'
sh 'yarn run compile' }
sh 'yarn run compile' }
}

stage('Install Xvfb') {
steps {
script {
// Check if Xvfb is installed, if not, install it
sh '''
if ! command -v Xvfb &> /dev/null
then
echo "Xvfb not found. Installing..."
sudo apt-get update
sudo apt-get install -y xvfb
else
echo "Xvfb is already installed."
fi
'''
}
}
}

stage('E2E tests') {
steps {
sh 'npm run test:e2e' }
}
}
}