Skip to content
Snippets Groups Projects
Unverified Commit 7489f1df authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #45 from FZJ-INM1-BDA/feat/apiTests

[skip ci] add jenkins file
parents b52343f9 0df58185
No related branches found
No related tags found
No related merge requests found
pipeline {
agent {
node {
label 'nodejs'
}
}
environment {
SERVICE_ACCOUNT_CRED = credentials('SERVICE_ACCOUNT_CRED')
WAXHOLM_RAT_GOOGLE_SHEET_ID = credentials('WAXHOLM_RAT_GOOGLE_SHEET_ID')
HUMAN_GOOGLE_SHEET_ID = credentials('HUMAN_GOOGLE_SHEET_ID')
ATLAS_URL = 'https://interactive-viewer-next.apps-dev.hbp.eu/'
}
stages {
stage('Build') {
steps {
echo 'Building..'
sh 'npm install'
}
}
stage('Test available datasets') {
parallel {
stage('rat') {
parallel {
stage('v1.01') {
steps {
sh 'npm run mocha-env -- ./api-test/**/rat.v1_01.spec.js --timeout 60000'
}
}
stage('v2') {
steps {
sh 'npm run mocha-env -- ./api-test/**/rat.v2.spec.js --timeout 60000'
}
}
stage('v3') {
steps {
sh 'npm run mocha-env -- ./api-test/**/rat.v3.spec.js --timeout 60000'
}
}
}
}
stage('mouse') {
parallel {
stage('mouse 2015') {
steps {
sh 'npm run mocha-env -- ./api-test/**/mouse.2015.spec.js --timeout 60000'
}
}
stage('mouse 2017') {
steps {
sh 'npm run mocha-env -- ./api-test/**/mouse.2017.spec.js --timeout 60000'
}
}
}
}
stage('human') {
steps {
sh 'echo NYI'
}
}
}
}
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment