From b37125e39d253715a7a7ba3500507825ffe2a44f Mon Sep 17 00:00:00 2001 From: Patrick Balsiger Date: Sun, 10 Jun 2018 23:05:35 +0200 Subject: [PATCH] example ci build --- .gitlab-ci.yml | 46 ++++++++++++++++------------------------------ 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3e82ae6..9276e34 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,35 +1,21 @@ -platformio: - before_script: - - apt-get update -qq && apt-get install -y -qq python-pip - - pip install platformio - - platformio lib --global install ArduinoJson TaskScheduler PubSubClient ESPAsyncTCP AsyncTCP - script: - - platformio ci --lib="." --board=nodemcuv2 examples/basic/basic.ino -O "build_flags = -Werror" - - platformio ci --lib="." --board=nodemcuv2 examples/mesh/mesh.ino -O "build_flags = -Wall -Wextra -Wno-unused-parameter -Werror" +cache: + paths: + - firmware -arduino: - before_script: - - wget https://downloads.arduino.cc/arduino-1.8.5-linux64.tar.xz - - tar xvfJ arduino-1.8.5-linux64.tar.xz - - cd arduino-1.8.5 - - ./arduino --pref "boardsmanager.additional.urls=https://adafruit.github.io/arduino-board-index/package_adafruit_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs - - ./arduino --install-boards esp8266:esp8266 - - ./arduino --install-library TaskScheduler - - ./arduino --install-library ArduinoJson - - git clone https://github.com/me-no-dev/ESPAsyncTCP; cp -r ESPAsyncTCP/src ~/Arduino/libraries/ESPAsyncTCP - - git clone https://github.com/me-no-dev/AsyncTCP; cp -r AsyncTCP/src ~/Arduino/libraries/AsyncTCP - - cp -r ../src ~/Arduino/libraries/painlessMesh - script: - - ./arduino -v --board esp8266:esp8266:d1_mini:CpuFrequency=80,FlashSize=4M1M --verify ../examples/startHere/basic.ino - - ./arduino -v --board esp8266:esp8266:d1_mini:CpuFrequency=80,FlashSize=4M1M --verify ../examples/startHere/startHere.ino +stages: + - test + - build -pages: +before_script: + - "pip install -U platformio" + +firmware-build: + stage: build + image: python:2.7-stretch script: - - apt-get update && apt-get install -y doxygen - - doxygen doxygen/Doxyfile - - mv doxygen/documentation/html/ public/ + - pio run -t clean + - platformio ci --lib="." --board=esp12e examples/mesh/mesh.cpp artifacts: paths: - - public - only: - - master + - .pioenvs/*/firmware.* + - .pioenvs/*/spiffs.bin \ No newline at end of file