From 42451a006285917a354f75ac49b36b9f0893fb95 Mon Sep 17 00:00:00 2001 From: Julien David Date: Tue, 6 Apr 2021 09:29:35 +0200 Subject: [PATCH 1/4] gitlab-ci --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9359ab4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +image: alpine + +stages: + - build + - test + +lipn-search: + stage: build + script: + - echo "Installation des paquets" + - apk update + - apk add python3 + - apk add py-pip + - pip install pytest + + +lipn-search: + stage: test + script: + - echo "Début de la phase de test" + - echo "Fin de la phase de test" \ No newline at end of file -- GitLab From ab656bec9e1e2e01250cf44f64d20e2ee89644bf Mon Sep 17 00:00:00 2001 From: Julien David Date: Tue, 6 Apr 2021 09:39:03 +0200 Subject: [PATCH 2/4] premier test unitaire --- .gitlab-ci.yml | 5 +++++ pagerank/test/Makefile | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9359ab4..701c23e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,4 +18,9 @@ lipn-search: stage: test script: - echo "Début de la phase de test" + - echo "Début des tests sur l'index inversé" + - cd index_inverse/test/ + - pytest test_hamming.py + - cd ../../ + - echo "Fin des tests sur l'index inversé" - echo "Fin de la phase de test" \ No newline at end of file diff --git a/pagerank/test/Makefile b/pagerank/test/Makefile index 4aeb4da..d1054dd 100644 --- a/pagerank/test/Makefile +++ b/pagerank/test/Makefile @@ -1,14 +1,14 @@ CC= gcc CXXFLAGS= -Wall --pedantic -O3 -CPP_O_FILE = test-graphe.o test-liste.o test-pagerank.o +CPP_O_FILE = test-graphe.o test-liste.o LIB = -lm all: $(CPP_O_FILE) $(CC) $(CXXFLAGS) -o test-graphe.exe test-graphe.c ../src/graphe.c $(LIB) $(CC) $(CXXFLAGS) -o test-liste.exe test-liste.c ../src/liste_url.c $(LIB) - $(CC) $(CXXFLAGS) -o test-pagerank.exe test-pagerank.c ../src/pagerank.c ../src/graphe.c ../src/liste_url.c $(LIB) + clean: rm -rf *.o *.exe -- GitLab From 5278aacc355d463b7a6b4fe7eed980dd28efceaa Mon Sep 17 00:00:00 2001 From: Julien David Date: Tue, 6 Apr 2021 10:12:30 +0200 Subject: [PATCH 3/4] test skipped stages --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 701c23e..2634e3b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,11 @@ image: alpine stages: - - build + - dependancies - test lipn-search: - stage: build + stage: dependancies script: - echo "Installation des paquets" - apk update -- GitLab From 165d34ad3c17c47f29587c85fe6b5ee121c589c4 Mon Sep 17 00:00:00 2001 From: Julien David Date: Tue, 6 Apr 2021 10:15:54 +0200 Subject: [PATCH 4/4] test skipped stages --- .gitlab-ci.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2634e3b..95f0121 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,16 @@ image: alpine stages: - - dependancies - test lipn-search: - stage: dependancies + stage: test script: - echo "Installation des paquets" - apk update - apk add python3 - apk add py-pip - pip install pytest - - -lipn-search: - stage: test - script: - echo "Début de la phase de test" - echo "Début des tests sur l'index inversé" - cd index_inverse/test/ -- GitLab