From 17b68d37892b24c2ffca3734bed44c98e2d37190 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Fri, 19 Jul 2019 01:11:10 +0200 Subject: [PATCH] fix ci build --- .gitignore | 1 + .gitlab-ci.yml | 4 ++-- platformio.ini | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 66337f2..c5c34ef 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ share/ # custom version.txt +build/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 293a443..4bdacb1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,8 +9,8 @@ build: - pip install -U platformio - platformio update script: - - platformio ci --project-conf platformio.ini --board=lolin_d32_pro --build-dir build --keep-build-dir -# - date +%s > build/.pio/build/lolin_d32_pro/build.version +# - date +%s > version.txt + - platformio ci --lib="script" --project-conf platformio.ini --board=lolin_d32_pro --build-dir="build" --keep-build-dir variables: {PLATFORMIO_CI_SRC: "src"} artifacts: paths: diff --git a/platformio.ini b/platformio.ini index c19f3b5..68a6051 100644 --- a/platformio.ini +++ b/platformio.ini @@ -22,4 +22,6 @@ build_flags = monitor_speed = 115200 -extra_scripts = pre:script/autoversioning.py +extra_scripts = + pre:script/autoversioning.py + pre:lib/script/autoversioning.py