Fix type
testing/ogcore-api/pipeline/head There was a failure building this commit
Details
testing/ogcore-api/pipeline/head There was a failure building this commit
Details
parent
3db25efbcf
commit
7425b54940
|
@ -8,13 +8,13 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('Build Environmen') {
|
stage('Build Environmen') {
|
||||||
steps {
|
steps {
|
||||||
# Build environment
|
//Build environment
|
||||||
sh 'docker compose up --build -d'
|
sh 'docker compose up --build -d'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Install dependencies') {
|
stage('Install dependencies') {
|
||||||
steps {
|
steps {
|
||||||
# Install dependencies
|
// Install dependencies
|
||||||
sh 'docker exec ogcore-php composer install'
|
sh 'docker exec ogcore-php composer install'
|
||||||
sh 'docker exec ogcore-php php bin/console lexik:jwt:generate-keypair --overwrite'
|
sh 'docker exec ogcore-php php bin/console lexik:jwt:generate-keypair --overwrite'
|
||||||
sh 'docker exec ogcore-php php bin/console doctrine:migrations:migrate --no-interaction'
|
sh 'docker exec ogcore-php php bin/console doctrine:migrations:migrate --no-interaction'
|
||||||
|
@ -23,19 +23,19 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Tests') {
|
stage('Tests') {
|
||||||
steps {
|
steps {
|
||||||
# Run tests
|
// Run tests
|
||||||
sh 'docker compose exec php bin/phpunit --log-junit phpunit.xml'
|
sh 'docker compose exec php bin/phpunit --log-junit phpunit.xml'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
# Publish JUnit test results
|
// Publish JUnit test results
|
||||||
xunit (
|
xunit (
|
||||||
thresholds: [ skipped(failureThreshold: 0) , failed(failureThreshold: 0) ],
|
thresholds: [ skipped(failureThreshold: 0) , failed(failureThreshold: 0) ],
|
||||||
tools: [ PHPUnit(pattern: 'phpunit.xml') ]
|
tools: [ PHPUnit(pattern: 'phpunit.xml') ]
|
||||||
)
|
)
|
||||||
# Remove containers
|
// Remove containers
|
||||||
sh 'docker compose down'
|
sh 'docker compose down'
|
||||||
sh 'docker compose rm -f'
|
sh 'docker compose rm -f'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue