From 17809b9d78de9cdc71fd5002981134c729a01700 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Sat, 7 Dec 2019 15:00:40 +0100 Subject: [PATCH] [CI] recover tag name from TRAVIS instead of having it hardcoded (#505) --- .travis.yml | 2 ++ main/User_config.h | 2 +- test/Test_config.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ee77a78..4ddbee3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,6 +37,8 @@ matrix: - rm /home/travis/build/1technophile/OpenMQTTGateway/main/User_config.h - cp /home/travis/build/1technophile/OpenMQTTGateway/test/Test_config.h /home/travis/build/1technophile/OpenMQTTGateway/main//User_config.h script: + - sed -i 's/version_tag/'$TRAVIS_TAG'/g' main/User_config.h + - sed -i 's/version_tag/'$TRAVIS_TAG'/g' test/Test_config.h - platformio run - bash scripts/prepare_deploy.sh before_deploy: ls -a diff --git a/main/User_config.h b/main/User_config.h index dbb8e05..02dabba 100644 --- a/main/User_config.h +++ b/main/User_config.h @@ -28,7 +28,7 @@ #ifndef user_config_h #define user_config_h /*-------------------VERSION----------------------*/ -#define OMG_VERSION "0.9.3beta" +#define OMG_VERSION "version_tag" /*-------------CONFIGURE WIFIMANAGER-------------(only ESP8266 & SONOFF RFBridge)*/ /* diff --git a/test/Test_config.h b/test/Test_config.h index 825786c..150fe6c 100644 --- a/test/Test_config.h +++ b/test/Test_config.h @@ -31,7 +31,7 @@ #ifndef user_config_h #define user_config_h /*-------------------VERSION----------------------*/ -#define OMG_VERSION "0.9.3beta" +#define OMG_VERSION "version_tag" /*-------------CONFIGURE WIFIMANAGER-------------*/ /*