From 2ff3cb5d343bcf010f930c87fe9f29e6db5b2d87 Mon Sep 17 00:00:00 2001 From: tonyfages Date: Sun, 31 Mar 2024 20:01:14 +0200 Subject: [PATCH] Drone --- JokesApp/components/DetailJoke.tsx | 1 - JokesApp/navigation/Navigation.tsx | 1 - drone.yml | 15 +++++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 drone.yml diff --git a/JokesApp/components/DetailJoke.tsx b/JokesApp/components/DetailJoke.tsx index 31c1b57..85c5150 100644 --- a/JokesApp/components/DetailJoke.tsx +++ b/JokesApp/components/DetailJoke.tsx @@ -16,7 +16,6 @@ export function DetailJoke(props: DetailJokeProps) { const favoriteJokes = useAppSelector(state => state.customReducer.favoriteJokes) as [CustomJoke, SampleJoke]; const dispatch = useAppDispatch(); const isFav : boolean = favoriteJokes.some(it => it.id == props.item.id ) - console.log("Is fav"+isFav) const [isActivated, setIsActivated] = useState(isFav); const [isActivated2, setIsActivated2] = useState(false); diff --git a/JokesApp/navigation/Navigation.tsx b/JokesApp/navigation/Navigation.tsx index 05a38b8..225a5c3 100644 --- a/JokesApp/navigation/Navigation.tsx +++ b/JokesApp/navigation/Navigation.tsx @@ -15,7 +15,6 @@ const addIcon = require("../assets/add_icon.png"); const favIcon = require("../assets/favorite_icon.png"); const setIcon = require("../assets/settings_icon.png"); import store, {getTheme, storeTheme} from "../redux/store"; -import {ListFavoriteJokeScreen} from "../screens/ListFavoriteJokeScreen"; export function Navigation(){ diff --git a/drone.yml b/drone.yml new file mode 100644 index 0000000..77a0aec --- /dev/null +++ b/drone.yml @@ -0,0 +1,15 @@ + kind: pipeline + type: docker + name: default + steps: + - name: sonar-analyses + image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest + environment: + sonar_host: https://codefirst.iut.uca.fr/sonar/ + sonar_token: + from_secret: SECRET_SONAR_LOGIN + project_key: JokesApp + commands: + - cd Source + - npm install + - sonar-scanner -Dsonar-projectkey=$${project_key} -Dsonar.sources=. -Dsonar.host.url=$${sonar_host} -Dsonar. login=$${sonar_token} \ No newline at end of file