-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
32 lines (32 loc) · 855 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: python
env:
- TEST=yes RTLAMR_VER=v0.9.1
- TEST=yes RTLAMR_VER=v0.9.1 LISTEN_ONLY=yes
# distro to be used
dist: focal
# command to install packages
addons:
apt:
packages:
- mosquitto
- rtl-sdr
- python3-paho-mqtt
- python3-yaml
- python3-tinydb
- python3-sklearn
python:
- "3.9"
# execute commands before install
before_install:
- wget https://github.com/bemasher/rtlamr/releases/download/${RTLAMR_VER}/rtlamr_linux_amd64.tar.gz
- tar zxvf rtlamr_linux_amd64.tar.gz
- chmod 755 rtlamr
- sudo mv rtlamr /usr/bin
- sudo mkdir /var/lib/rtlamr2mqtt/
- sudo chmod 777 /var/lib/rtlamr2mqtt/
# command to install dependencies
# install:
# - pip install -r requirements.txt
# command to run tests
script:
- python3 rtlamr2mqtt.py rtlamr2mqtt.yaml || python rtlamr2mqtt.py rtlamr2mqtt.yaml