-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into new-release
- Loading branch information
Showing
51 changed files
with
32,620 additions
and
12,924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM node:12.16.2-buster-slim | ||
FROM node:14-buster-slim | ||
RUN apt-get update && apt-get install -y python3 python3-pip git | ||
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
FROM node:12.16.2-buster-slim | ||
FROM node:14-buster-slim | ||
LABEL maintainer="Piotr Antczak <antczak.piotr@gmail.com>" | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python3 git python3-setuptools && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip && pip3 install platformio && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get clean && \ | ||
yarn global add nodemon && \ | ||
npm install -g nodemon && \ | ||
cd /tmp && git clone https://github.com/arendst/Tasmota.git && \ | ||
rm -rf /var/lib/apt/lists/* | ||
ADD public /tasmocompiler/public/ | ||
ADD server /tasmocompiler/server/ | ||
ADD src /tasmocompiler/src/ | ||
ADD package.json yarn.lock .yarnrc /tasmocompiler/ | ||
RUN cd /tasmocompiler && yarn install && \ | ||
yarn build && \ | ||
yarn cache clean | ||
ADD package.json package-lock.json /tasmocompiler/ | ||
RUN cd /tasmocompiler && npm ci && npm run build | ||
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 | ||
WORKDIR /tasmocompiler | ||
ENTRYPOINT ["nodemon", "server/app.js"] | ||
EXPOSE 3000/tcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Automatic compilation tests | ||
|
||
## Description | ||
|
||
Here are the automation scripts, to check if TasmoCompiler is still able to compile Tasmota. It is using `user_config_override.h` and `platformio_override.ini` files generated by TasmoCompiler. Then it runs compilation for every supported/defined board. | ||
|
||
## Requirements | ||
|
||
What is needed: | ||
|
||
- platformio is installed and is available in the `PATH` | ||
- ansible is installed and available in the `PATH` | ||
- source code of Tasmota is available at the location defined in `tasmota_dir` ansible variable (`group_vars/all/vars.yaml`) | ||
|
||
The easiest way to prepare testing environemnt is to use `python` virtualenv module: | ||
|
||
```sh | ||
apt install python3-venv | ||
cd tasmocompiler | ||
python3 -m venv .venv # create new python virtualenv | ||
source .venv/bin/activate # active virtualenv | ||
pip install platformio ansible # install platformio and ansible in virtualenv | ||
cd ansible | ||
ansible-playbook site.yaml # run tests | ||
``` | ||
|
||
## Adding new board | ||
|
||
To add new board one need to add required files to `roles/compile/files/<board_name>` and then add this board to test suite in `site.yaml` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tasmota_dir: /tmp/Tasmota | ||
tasmota_branch: development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[platformio] | ||
default_envs = tasmota32c3 | ||
|
||
[env:tasmota32c3] | ||
extends = env:tasmota32_base | ||
board = esp32c3 | ||
build_unflags = {env:tasmota32_base.build_unflags} -flto -mtarget-align | ||
build_flags = ${env:tasmota32_base.build_flags} -fno-lto | ||
lib_ignore = TTGO TWatch Library, epdiy, Micro-RTSP, mp3_shine_esp32 |
Oops, something went wrong.