diff --git a/.forgejo/workflows/maven.yml b/.forgejo/workflows/maven.yml deleted file mode 100644 index d1ff92a..0000000 --- a/.forgejo/workflows/maven.yml +++ /dev/null @@ -1,21 +0,0 @@ -image: maven:3.8.3-openjdk-17 - -services: - - mysql:8.0 - -variables: - MYSQL_DATABASE: projet_gei_023 - MYSQL_ROOT_PASSWORD: root - MYSQL_USER: user - MYSQL_PASSWORD: ohQu4ood - MYSQL_HOST: mysql - -stages: - - test - -test: - stage: test - script: - - mvn test - only: - - master \ No newline at end of file diff --git a/.github/workflows/.gitlab-ci.yml b/.github/workflows/.gitlab-ci.yml new file mode 100644 index 0000000..1d08731 --- /dev/null +++ b/.github/workflows/.gitlab-ci.yml @@ -0,0 +1,15 @@ +workflow: + rules: + - if: $CI_COMMIT_BRANCH + +test: + image: maven:3.8.3-openjdk-11 + script: + - mvn clean test + variables: + DB_URL: "jdbc:mysql://srv-bdens.insa-toulouse.fr:3306/projet_gei_023" + DB_USER: "projet_gei_023" + DB_PASSWORD: "ohQu4ood" + artifacts: + reports: + junit: target/surefire-reports/*.xml \ No newline at end of file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..1d08731 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,15 @@ +workflow: + rules: + - if: $CI_COMMIT_BRANCH + +test: + image: maven:3.8.3-openjdk-11 + script: + - mvn clean test + variables: + DB_URL: "jdbc:mysql://srv-bdens.insa-toulouse.fr:3306/projet_gei_023" + DB_USER: "projet_gei_023" + DB_PASSWORD: "ohQu4ood" + artifacts: + reports: + junit: target/surefire-reports/*.xml \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1956dfa --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1 @@ +image: maven:3.8.3-openjdk-11 test: script: - mvn clean test variables: DB_URL: "jdbc:mysql://srv-bdens.insa-toulouse.fr:3306/projet_gei_023" DB_USER: "projet_gei_023" DB_PASSWORD: "ohQu4ood" \ No newline at end of file