From be4b4f4152bd99d4dea8d3eecf134e0656e53e7e Mon Sep 17 00:00:00 2001
From: Severin Landwein <Severin.Landwein@th-koeln.de>
Date: Tue, 31 May 2022 14:53:31 +0200
Subject: [PATCH] remove unnecessary stuff

---
 .gitlab-ci.yml                    |  6 +-----
 examples/unittest/compile_test.py | 22 ----------------------
 2 files changed, 1 insertion(+), 27 deletions(-)
 delete mode 100644 examples/unittest/compile_test.py

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5e7c3b2..863d523 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,7 +4,6 @@ before_script:
   - chmod +x ./setup-build-env.sh
   - ./setup-build-env.sh
   - cp -r ../* /root/Arduino/libraries
-  - apt-get install python3 -y
  
 stages:
   - build
@@ -19,7 +18,4 @@ test1:
   stage: test
   script:
     - arduino-cli compile --fqbn arduino:avr:uno examples/unittest/
-    - arduino-cli upload --fqbn arduino:avr:uno -p /dev/ttyUSB0 examples/unittest
-    #- arduino-cli monitor -p /dev/ttyUSB0
-    #- python3 examples/unittest/compile_test.py
-    - sleep 60m
\ No newline at end of file
+    - arduino-cli upload --fqbn arduino:avr:uno -p /dev/ttyUSB0 examples/unittest
\ No newline at end of file
diff --git a/examples/unittest/compile_test.py b/examples/unittest/compile_test.py
deleted file mode 100644
index 37cb2c6..0000000
--- a/examples/unittest/compile_test.py
+++ /dev/null
@@ -1,22 +0,0 @@
-#! /usr/bin/env python3
-import subprocess
-import json
-import argparse
-import sys
-import logging
-
-
-def main():
-    command = 'arduino-cli monitor -p /dev/ttyUSB0'
-    process = subprocess.run(command, stdout=subprocess.PIPE)
-    log.error(process.stdout.decode('utf-8'))
-    if process.returncode:
-        log.error(process.stdout.decode('utf-8'))
-        sys.exit(process.returncode)
-    else:
-        log.error('Board not installed: {}'.format(board))
-        sys.exit(-1)
-
-
-if __name__ == '__main__':
-    main()
\ No newline at end of file
-- 
GitLab