From b4cbfb6d120f5b42ed60a080818efa2425849e8f Mon Sep 17 00:00:00 2001 From: Alexis Drai Date: Mon, 6 Feb 2023 18:11:49 +0100 Subject: [PATCH] :gear: Add CI --- .drone.yml | 21 +++++++++++++++++++++ README.md | 4 +++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b5ddf19 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +kind: pipeline +type: docker +name: default + +trigger: + event: + - push + +steps: + - name: build + image: swift:latest + commands: + - cd Connect4/connect4_lib/Sources/connect4_lib + - swift build + + - name: tests_Model + image: swift:latest + commands: + - cd Connect4/connect4_lib/Sources/connect4_lib + - swift test + depends_on: [build] \ No newline at end of file diff --git a/README.md b/README.md index 110881e..bdb71b0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ +[![Build Status](https://codefirst.iut.uca.fr/api/badges/alexis.drai/connect4-swift/status.svg)](https://codefirst.iut.uca.fr/alexis.drai/connect4-swift) + # Connect 4 -## XCode have mercy +