[CI] recover tag name from TRAVIS instead of having it hardcoded (#505)

This commit is contained in:
Florian authored and GitHub committed 2019-12-07 15:00:40 +01:00
1 parent 7384455fb9
commit 17809b9d78
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -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
View File
@@ -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
View File
@@ -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-------------*/
/*