commit
bf47ddaa05
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
apt install wget
|
||||||
|
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.8.0.2856-linux.zip
|
||||||
|
unzip sonar-scanner-cli-4.8.0.2856-linux.zip
|
||||||
|
ls -la
|
||||||
|
mv ./sonar-scanner-4.8.0.2856-linux ./sonarscanner
|
||||||
|
cd apps
|
||||||
|
../sonarscanner/bin/sonar-scanner -X -Dsonar.login=b6b66f8b798b46b693cc19f788215111871d5287
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
sonar.host.url=https://sonarqube.naser.fr/
|
||||||
|
sonar.projectKey=david:guitar-apps
|
||||||
|
sonar.projectName=Apps Guitar School
|
||||||
|
sonar.projectVersion=0.1.0-SNAPSHOT
|
||||||
|
|
||||||
|
# =====================================================
|
||||||
|
# Meta-data for the project
|
||||||
|
# =====================================================
|
||||||
|
|
||||||
|
sonar.links.homepage=https://gitea.naser.fr/sebsn86/nx-guitar-school
|
||||||
|
sonar.links.ci=https://teamcity.naser.fr/buildConfiguration/NxGuitarSchool_GuitarSchool?mode=builds#all-projects
|
||||||
|
sonar.links.issues=https://gitea.naser.fr/sebsn86/nx-guitar-school/issues
|
||||||
|
|
||||||
|
# =====================================================
|
||||||
|
# Definition of the modules
|
||||||
|
# =====================================================
|
||||||
|
|
||||||
|
sonar.modules=website
|
||||||
|
|
||||||
|
website.sonar.projectName=NextJS Guitar School
|
||||||
|
|
||||||
|
# =====================================================
|
||||||
|
# Properties that will be shared amongst all modules
|
||||||
|
# =====================================================
|
||||||
|
|
||||||
|
# Website properties
|
||||||
|
website.sonar.projectBaseDir=./website
|
||||||
|
website.sonar.sources=./
|
||||||
|
website.sonar.exclusions=**/.next/**/.coverage/,**/.eslintrc.json,**/index.d.ts,**/jest.config.ts,**/next.config.js,**/postcss.config.js,**/tailwind.config.js,**/with-nx.js,**/*.css,**/*.scss,**/*.spec.ts,**/*.spec.tsx
|
||||||
|
website.sonar.coverage.exclusions=**/.next/**/.coverage,**/.eslintrc.json,**/index.d.ts,**/jest.**/config.ts,**/next.config.js,**/postcss.config.js,**/tailwind.config.js,**/with-nx.js,**/*.css,**/*.scss
|
||||||
|
website.sonar.language=ts
|
||||||
|
website.sonar.tests=./tests
|
||||||
|
website.sonar.javascript.lcov.reportPaths=./coverage/lcov.info
|
||||||
|
website.sonar.sourceEncoding=UTF-8
|
||||||
@ -1,10 +0,0 @@
|
|||||||
import { render } from '@testing-library/react';
|
|
||||||
|
|
||||||
import Footer from './footer';
|
|
||||||
|
|
||||||
describe('Footer', () => {
|
|
||||||
it('should render successfully', () => {
|
|
||||||
const { baseElement } = render(<Footer />);
|
|
||||||
expect(baseElement).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
import { render } from '@testing-library/react';
|
|
||||||
|
|
||||||
import SeoConfig from './seo-config';
|
|
||||||
|
|
||||||
describe('SeoConfig', () => {
|
|
||||||
it('should render successfully', () => {
|
|
||||||
const { baseElement } = render(<SeoConfig />);
|
|
||||||
expect(baseElement).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
strapiUrl: 'http://admin.mecp.nasercloud.fr/',
|
strapiUrl: 'https://admin.mecp.nasercloud.fr/',
|
||||||
strapiApiUrl: 'http://admin.mecp.nasercloud.fr/api',
|
strapiApiUrl: 'https://admin.mecp.nasercloud.fr/api',
|
||||||
nextAuthSecret: "yBNW1wrb9CgOvEfbX6EQCvCDqiMkRBZP"
|
nextAuthSecret: "yBNW1wrb9CgOvEfbX6EQCvCDqiMkRBZP"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
strapiUrl: 'http://admin.mecp.nasercloud.fr/',
|
strapiUrl: 'https://admin.mecp.nasercloud.fr/',
|
||||||
strapiApiUrl: 'http://admin.mecp.nasercloud.fr/api',
|
strapiApiUrl: 'https://admin.mecp.nasercloud.fr/api',
|
||||||
nextAuthSecret: "yBNW1wrb9CgOvEfbX6EQCvCDqiMkRBZP"
|
nextAuthSecret: "yBNW1wrb9CgOvEfbX6EQCvCDqiMkRBZP"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +0,0 @@
|
|||||||
sonar.projectKey=david:guitar-apps
|
|
||||||
sonar.sources=./
|
|
||||||
sonar.coverage.exclusions=.next/,.eslintrc.json,config.ts,index.d.ts,jest.config.ts,next.config.js,postcss.config.js,tailwind.config.js,with-nx.js
|
|
||||||
sonar.language=ts
|
|
||||||
sonar.tests=./
|
|
||||||
sonar.javascript.lcov.reportPaths=../../coverage/apps/website/lcov.info
|
|
||||||
sonar.testExecutionReportPaths=test-report.xml
|
|
||||||
sonar.sourceEncoding=UTF-8
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
import { render } from '@testing-library/react';
|
import { render } from '@testing-library/react';
|
||||||
|
|
||||||
import Carousel from './carousel';
|
import Carousel from '../components/carousel/carousel';
|
||||||
|
|
||||||
describe('Carousel', () => {
|
describe('Carousel', () => {
|
||||||
it('should render successfully', () => {
|
it('should render successfully', () => {
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
import {render} from '@testing-library/react';
|
||||||
|
|
||||||
|
import Footer from '../components/footer/footer';
|
||||||
|
|
||||||
|
describe('Footer', () => {
|
||||||
|
it('should render successfully', () => {
|
||||||
|
const {baseElement} = render(<Footer/>);
|
||||||
|
expect(baseElement).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -1,7 +1,6 @@
|
|||||||
import {render} from '@testing-library/react';
|
import {render} from '@testing-library/react';
|
||||||
import {SessionProvider, useSession} from "next-auth/react";
|
|
||||||
|
|
||||||
import Header from './header';
|
import Header from '../components/header/header';
|
||||||
|
|
||||||
jest.mock("next-auth/react", () => {
|
jest.mock("next-auth/react", () => {
|
||||||
const originalModule = jest.requireActual('next-auth/react');
|
const originalModule = jest.requireActual('next-auth/react');
|
||||||
@ -1,6 +1,6 @@
|
|||||||
import {render} from '@testing-library/react';
|
import {render} from '@testing-library/react';
|
||||||
|
|
||||||
import Layout from './layout';
|
import Layout from '../components/layout/layout';
|
||||||
|
|
||||||
jest.mock("next-auth/react", () => {
|
jest.mock("next-auth/react", () => {
|
||||||
const originalModule = jest.requireActual('next-auth/react');
|
const originalModule = jest.requireActual('next-auth/react');
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
import {render} from '@testing-library/react';
|
||||||
|
|
||||||
|
import SeoConfig from '../components/seo-config/seo-config';
|
||||||
|
|
||||||
|
describe('SeoConfig', () => {
|
||||||
|
it('should render successfully', () => {
|
||||||
|
const {baseElement} = render(<SeoConfig/>);
|
||||||
|
expect(baseElement).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
Loading…
Reference in new issue