diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..95f012168940a7c94aafe4c5ab6c600d88229bb4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +image: alpine + +stages: + - test + +lipn-search: + stage: test + script: + - echo "Installation des paquets" + - apk update + - apk add python3 + - apk add py-pip + - pip install pytest + - 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 4aeb4da71cca427511068028febe21e3b25f3434..d1054dd9acc90b4d06d0d4156f3f5632d0304161 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