diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 251f0e4..c109cd8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,13 @@ default: - shell - CREMI +workflow: + rules: + - if: $CI_COMMIT_MESSAGE =~ /-draft$/ + when: never + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + build-job: # This job runs in the build stage, which runs first. allow_failure: false stage: build diff --git a/game_solve.c b/game_solve.c index 4bb2245..5f534d5 100644 --- a/game_solve.c +++ b/game_solve.c @@ -7,7 +7,7 @@ #include "game_tools.h" void usage() { - fprintf(stderr, "problem with paramametre"); + fprintf(stderr, "problem with paramametre\n"); exit(EXIT_FAILURE); } @@ -37,7 +37,7 @@ int main(int argc, char* argv[]) { game_save(g1, filename); } } - // if the option is -s + // if the option is -c else if (strcmp(option, "-c") == 0) { // GET THE NB OF SOLUTIONS cgame g2 = game_load(file); @@ -57,6 +57,5 @@ int main(int argc, char* argv[]) { printf("or '-c' if you want the number of solutions\n"); exit(EXIT_FAILURE); }*/ - return EXIT_SUCCESS; } \ No newline at end of file