Skip to content

Commit

Permalink
build: update dependencies (#11)
Browse files Browse the repository at this point in the history
* build: update dependencies
* ci: migrate from Travis CI to GitHub Actions
  • Loading branch information
gmasse authored May 7, 2024
1 parent 650cb3e commit 3b40d27
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 32 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on: [push]

env:
PIO_FIRMWARE_URL: "http://foo.bar/firmware.com"
PIO_MQTT_HOST_IP: 127.0.0.1
PIO_MQTT_PORT: 1883
PIO_MQTT_TOPIC: topic

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel cpplint platformio
cp platformio.ini.dist platformio.ini
pio pkg update
- name: Lint
run: cpplint --recursive src include lib
- name: Compile
run: platformio run
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![esp-modbus-mqtt: A Modbus RTU (RS-485) to MQTT Gateway (based on ESP32)](./assets/banner.png)

[![Build Status](https://travis-ci.com/gmasse/esp-modbus-mqtt.svg?branch=master)](https://travis-ci.com/gmasse/esp-modbus-mqtt)
![CI workflow](https://github.com/gmasse/esp-modbus-mqtt/actions/workflows/ci.yml/badge.svg)

## Circuit

Expand Down
8 changes: 4 additions & 4 deletions platformio.ini.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

[common]
lib_deps_external =
ModbusMaster@~2.0.1
AsyncMqttClient@~0.8.2
ArduinoJson@~6.14.1
https://github.com/tzapu/WiFiManager.git#4a98ba0e29606c684e66fa80e53f1293a269540b
4-20ma/ModbusMaster@~2.0.1
marvinroger/AsyncMqttClient@~0.9.0
bblanchon/ArduinoJson@~7.0.4
https://github.com/tzapu/WiFiManager.git#v2.0.17

[extra]
monitor_speed = 115200
Expand Down

0 comments on commit 3b40d27

Please sign in to comment.