initial commit
continuous-integration/drone Build is failing
Details
continuous-integration/drone Build is failing
Details
This commit is contained in:
commit
3ff42b701e
|
@ -0,0 +1,9 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: blakadder/docker-tasmota
|
||||
commands:
|
||||
- ./build.sh
|
|
@ -0,0 +1,2 @@
|
|||
.idea/
|
||||
*.iml
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
apt-get update
|
||||
apt-get -y install git
|
||||
|
||||
base_dir=$(pwd)
|
||||
|
||||
git clone https://github.com/arendst/Tasmota.git /tasmota
|
||||
|
||||
cd /tasmota
|
||||
|
||||
if [ -z "$TASMOTA_VERSION" ]; then
|
||||
TASMOTA_VERSION=$(wget -qO - https://api.github.com/repos/arendst/Tasmota/releases/latest | grep -oP 'tag_name"\s*:\s*"\K[^"]+')
|
||||
fi
|
||||
|
||||
git checkout $TASMOTA_VERSION
|
||||
|
||||
rm -f /tasmota/tasmota/user_config_override.h
|
||||
cp $base_dir/user_config_override.h /tasmota/tasmota/user_config_override.h
|
||||
|
||||
pio run -e tasmota
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
user_config_override.h - user configuration overrides my_user_config.h for Tasmota
|
||||
|
||||
Copyright (C) 2021 Theo Arends
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _USER_CONFIG_OVERRIDE_H_
|
||||
#define _USER_CONFIG_OVERRIDE_H_
|
||||
|
||||
#ifdef USE_DOMOTICZ
|
||||
#undef USE_DOMOTICZ
|
||||
#endif
|
||||
|
||||
#define USER_BACKLOG ""
|
||||
|
||||
#endif // _USER_CONFIG_OVERRIDE_H_
|
Loading…
Reference in New Issue