|
|
@@ -43,13 +43,15 @@ pipeline {
|
|
|
stage('Unit Tests') {
|
|
|
agent {
|
|
|
docker {
|
|
|
- image 'node:14' // Compatible Angular 9
|
|
|
- args '-u root:root' // Si problèmes de droits
|
|
|
+ image 'node:14'
|
|
|
+ args '-u root:root'
|
|
|
}
|
|
|
}
|
|
|
steps {
|
|
|
dir('angular-client') {
|
|
|
sh '''
|
|
|
+ apt-get update && apt-get install -y chromium
|
|
|
+ export CHROME_BIN=$(which chromium)
|
|
|
npm install --legacy-peer-deps
|
|
|
npm run test -- --no-watch --no-progress --browsers=ChromeHeadless
|
|
|
'''
|
|
|
@@ -59,6 +61,7 @@ pipeline {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
// 3. Analyse SonarQube pour la qualité du code
|
|
|
// stage('SonarQube Analysis') {
|
|
|
// steps {
|