forked from kizniche/Mycodo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
21 lines (21 loc) · 1.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
language: python
os: linux
dist: xenial
python:
- "3.5"
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 abyz.me.uk/rpi/pigpio/pigpio.tar && tar xf pigpio.tar && cd ./PIGPIO && make -j4 && sudo make install && cd ..
- pip install --upgrade pip webtest
- wget https://dl.influxdata.com/influxdb/releases/influxdb_1.7.2_amd64.deb && sudo dpkg -i influxdb_1.7.2_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.txt
- pip3 install --upgrade -r install/requirements.txt
script:
- cd mycodo && pytest tests/software_tests