[CI] recover tag name from TRAVIS instead of having it hardcoded (#505)
This commit is contained in:
1 parent
7384455fb9
commit
17809b9d78
3 files changed
+4
-2
No files matched your search
@@ -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
|
||||
|
||||
+1
-1
@@ -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)*/
|
||||
/*
|
||||
|
||||
+1
-1
@@ -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-------------*/
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user