forked from kizniche/Mycodo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
23 lines (23 loc) · 1.21 KB
/
.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
language: python
os: linux
dist: xenial
python:
- "3.7"
before_install:
- sudo apt-get update
- sudo apt-get install -y libboost-python-dev gawk git libav-tools libffi-dev libi2c-dev nginx python3 python3-dev python3-numpy sqlite3 swig
- git clone --recursive https://github.com/WiringPi/WiringPi-Python.git && cd WiringPi-Python && git submodule update --init && cd WiringPi && ./build && cd ../..
- wget https://github.com/joan2937/pigpio/archive/v75.zip && unzip v75.zip && cd ./pigpio-75 && make -j4 && sudo make install && cd ..
- pip install --upgrade pip webtest
- wget https://dl.influxdata.com/influxdb/releases/influxdb_1.7.8_amd64.deb && sudo dpkg -i influxdb_1.7.8_amd64.deb
- sudo service influxdb start && sleep 2
- influx -execute "CREATE DATABASE mycodo_db"
- influx -database mycodo_db -execute "CREATE USER mycodo WITH PASSWORD 'mmdu77sj3nIoiajjs'"
- export PATH=/usr/bin:$PATH
install:
- sed -i '/picamera/d' install/requirements-rpi.txt
- pip3 install --upgrade -r install/requirements.txt
- pip3 install --upgrade -r install/requirements-rpi.txt
- pip3 install --upgrade -r install/requirements-testing.txt
script:
- cd mycodo && pytest -W ignore::DeprecationWarning -s tests/software_tests