From 5d189057be0356b69dcd3ea40d0ad9c6559e8cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 20 Feb 2021 16:24:16 +0100 Subject: [PATCH 1/8] add drone config --- .drone.yml | 9 +++++++++ test.py | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .drone.yml create mode 100644 test.py diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..82b5eaf --- /dev/null +++ b/.drone.yml @@ -0,0 +1,9 @@ +--- +kind: pipeline +name: default + +steps: + - name: test + image: python3 + commands: + - python3 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..fd3f7f5 --- /dev/null +++ b/test.py @@ -0,0 +1,10 @@ +import unittest + +class BasicTest(unittest.TestCase): + + def test_empty(self): + self.assertTrue(True) + + +if __name__ == '__main__': + unittest.main() From 0673df9791199846d18668718b9c0dcedd19973d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 20 Feb 2021 16:26:11 +0100 Subject: [PATCH 2/8] add test --- test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test.py b/test.py index fd3f7f5..3e3ba9f 100644 --- a/test.py +++ b/test.py @@ -5,6 +5,9 @@ class BasicTest(unittest.TestCase): def test_empty(self): self.assertTrue(True) + def test_second(self): + self.assertTrue(True) + if __name__ == '__main__': unittest.main() From 99caf84d5101fc6cb49976b5a912cc8032d028dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 20 Feb 2021 16:30:06 +0100 Subject: [PATCH 3/8] add test 3 --- test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.py b/test.py index 3e3ba9f..0ba3c9d 100644 --- a/test.py +++ b/test.py @@ -8,6 +8,8 @@ class BasicTest(unittest.TestCase): def test_second(self): self.assertTrue(True) + def test_third(self): + self.assertTrue(True) if __name__ == '__main__': unittest.main() From 28c21a1201aab195a06b8cd77606ea9a30fa3299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 20 Feb 2021 16:33:25 +0100 Subject: [PATCH 4/8] add test 4 --- test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test.py b/test.py index 0ba3c9d..724fd2a 100644 --- a/test.py +++ b/test.py @@ -11,5 +11,8 @@ class BasicTest(unittest.TestCase): def test_third(self): self.assertTrue(True) + def test_four(self): + self.assertTrue(True) + if __name__ == '__main__': unittest.main() From 14182cd711c3d646bff1db0d891a6a02cf081910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 20 Feb 2021 16:35:34 +0100 Subject: [PATCH 5/8] add test 4.1 --- test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test.py b/test.py index 724fd2a..ca4fafa 100644 --- a/test.py +++ b/test.py @@ -16,3 +16,4 @@ class BasicTest(unittest.TestCase): if __name__ == '__main__': unittest.main() + print("ok") From a2e56c0cca6a07949afc6860d3080f3dd05cfedb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 20 Feb 2021 16:37:36 +0100 Subject: [PATCH 6/8] add test 4.2 --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index ca4fafa..3d3272c 100644 --- a/test.py +++ b/test.py @@ -16,4 +16,4 @@ class BasicTest(unittest.TestCase): if __name__ == '__main__': unittest.main() - print("ok") + print("ok, finished") From c57e013d47d74f0077ce030d9c5cb2130399ad14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 20 Feb 2021 17:12:12 +0100 Subject: [PATCH 7/8] add test 5 to fix ci --- test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test.py b/test.py index 3d3272c..14645e8 100644 --- a/test.py +++ b/test.py @@ -14,6 +14,9 @@ class BasicTest(unittest.TestCase): def test_four(self): self.assertTrue(True) + def test_five(self): + self.assertTrue(True) + if __name__ == '__main__': unittest.main() print("ok, finished") From 76ebbd5eb347b9b89c803090c11d2c50ee14890a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 20 Feb 2021 17:12:55 +0100 Subject: [PATCH 8/8] fix ci image --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 82b5eaf..6e9de76 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,6 +4,6 @@ name: default steps: - name: test - image: python3 + image: python:3 commands: - python3 test.py