-
Notifications
You must be signed in to change notification settings - Fork 141
/
.travis.yml
39 lines (39 loc) · 1.58 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: python
sudo: required
python:
- '3.5'
env:
matrix:
- DOCKER_BASE=ubuntu:latest
- DOCKER_BASE=debian:latest
- DOCKER_BASE=i386/ubuntu:xenial
#~ - DOCKER_BASE=arm32v7/ubuntu:xenial
#~ - DOCKER_BASE=arm64v8/ubuntu:xenial
#~ - DOCKER_BASE=resin/rpi-raspbian:latest
- DOCS="true"
global:
- secure: "LdXdleVnh5s6HRPWLh3LcYo+s2IpvxwjFOQSJdMM1/svpstBu+pqAy6y6ivn4u7RUgG1Hva+iImMmqoBw4MUl+CTvK1RTLsOFFa0z37XSdWJbHSA+SmH9Dith1iHjaHTnkMNRaJugfJoLm2RXsii4ksMZcncm0gQLChyH+kxzX+ytoz8ofKk6f8zKqa+8YYhTlsV+BtnaEJOli22FKmLI8glOYiJpJj9UG8xQkwzNlIxR0PNZxvXnfVLeIw4sF9R3h6fkM/PZGbEfn1roZYDsdepl6SwumfmY+gOB74Ze7oObeJjmXA1HC8NSrsivIDB+gfAzKE01Jk2LyNZ+T2u7Zlqjf9pV0HhkYuBhc38BkpeBKkMKliJwuSIwEdsGWR71rC7VmegSbKp/I3Ev3oWy3h0k/J/W4SIxhN4mc8DAhaIC5TPdMHHTBSWyh494PEjX5zrinq4w6K7qjWpUB6rEUpHTHIE/F5f46QRTwFb5bhusIH8Hjo7GceEtYy1h8vGJ16GnAqvvrBJBU5QKCSfJicMiOUPELl3iD86vOdrJyYiiU+jALvgQH70D7KA9igIGRjmOdv71D09bEOVAYSNOaBsiCtyZqyx8kDMSETJ92VwhLO/aKazoGqlgiI8bEqSHA7Tjah6vyeTdnZeWRg7Fh2RM4W1T7lkXqzICNbUdW0="
services:
- docker
before_install:
- if [[ "${DOCKER_BASE}x" != "x" ]]; then
docker pull ${DOCKER_BASE};
fi
- if [[ "${DOCS}" == "true" ]]; then
sudo apt-get update;
sudo make common-deps;
fi
script:
- if [[ "${DOCKER_BASE}x" != "x" ]]; then
sed -e "s#ubuntu:latest#${DOCKER_BASE}#" Dockerfile > dynamic.dockerfile && docker build -t python-openzwave -f dynamic.dockerfile .;
fi
- if [[ "${DOCS}" == "true" ]]; then
set -e;
make doc-deps;
make install-api;
cd docs;
make html;
cd ..;
pip3 install doctr;
doctr deploy --built-docs docs/_build/html .;
fi