mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Try with parallel tests
This commit is contained in:
Vendored
+31
-27
@@ -67,15 +67,38 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Unit Test') {
|
stage('Test and Minify') {
|
||||||
agent {
|
parallel {
|
||||||
docker {
|
stage('Unit Test') {
|
||||||
image 'node:6.9.5'
|
agent {
|
||||||
reuseNode true
|
docker {
|
||||||
|
image 'node:6.9.5'
|
||||||
|
reuseNode true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'make --no-print-directory test_unit MOCHA_ARGS="--reporter tap"'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Acceptance Test') {
|
||||||
|
steps {
|
||||||
|
// Spawns its own docker containers
|
||||||
|
sh 'make --no-print-directory test_acceptance MOCHA_ARGS="--reporter tap"'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Minify') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'node:6.9.5'
|
||||||
|
reuseNode true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'WEBPACK_ENV=production make minify'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh 'make --no-print-directory test_unit MOCHA_ARGS="--reporter tap"'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,25 +109,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Acceptance Test') {
|
|
||||||
steps {
|
|
||||||
// Spawns its own docker containers
|
|
||||||
sh 'make --no-print-directory test_acceptance MOCHA_ARGS="--reporter tap"'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Minify') {
|
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'node:6.9.5'
|
|
||||||
reuseNode true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh 'WEBPACK_ENV=production make minify'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Package') {
|
stage('Package') {
|
||||||
steps {
|
steps {
|
||||||
sh 'rm -rf ./node_modules/grunt*'
|
sh 'rm -rf ./node_modules/grunt*'
|
||||||
|
|||||||
Reference in New Issue
Block a user