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