initial commit
continuous-integration/drone Build is failing Details

This commit is contained in:
Tyler 2023-02-13 00:24:56 -05:00
commit 3ff42b701e
4 changed files with 61 additions and 0 deletions

9
.drone.yml Normal file
View File

@ -0,0 +1,9 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: blakadder/docker-tasmota
commands:
- ./build.sh

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea/
*.iml

21
build.sh Normal file
View File

@ -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

29
user_config_override.h Normal file
View File

@ -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_