diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 53423ba..9474f49 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,8 +8,9 @@ inocode: GITREMDEB: "https://github.com/JoaoLopesF/ESP8266-RemoteDebug-Telnet.git" before_script: - apt update - - apt install xvfb + - apt -y install xvfb - Xvfb :1 -nolisten tcp -screen :1 1280x800x24 & + - xvfb="$!" - export DISPLAY=":1" - cd / - wget --quiet "https://downloads.arduino.cc/arduino-1.8.2-linux64.tar.xz" @@ -27,6 +28,9 @@ inocode: - cd "${CI_PROJECT_DIR}/arduino/${CI_PROJECT_NAME}" - cp "${CI_PROJECT_NAME}.example.h" "${CI_PROJECT_NAME}.h" - /arduino-1.8.2/arduino --verify "${CI_PROJECT_NAME}.ino" + after_script: + - kill -9 "${xvfb}" + yaml: image: "python:alpine"