-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
93 lines (76 loc) · 2.3 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
sudo: true
language: python
os:
# - windows # Python not supported yet for travis windows builds 12/11/2018
- linux
# - osx # Python not supported yet for travis osx builds 12/11/2018
# ubuntu xenial is required for xvfb (virtual graphics)
dist: xenial
python:
- 3.5
- 3.6
# - 3.7 # until imagepypelines-tools is updated
services:
- xvfb
addons:
apt:
packages:
# for sphinx automodapi
- graphviz
before_install:
# prevent travis from timing out from slow processes
- chmod +x docs/prevent_travis_timeout.sh
- docs/prevent_travis_timeout.sh &
- export PREVENT_TRAVIS_TIMEOUT_PID=$!
install:
# install imagepypelines core
- pip install -r requirements.txt
- pip install .
# install official plugins so we can have their docs on the site as well
# NOTE: temporary until plugins are on pypi
# image
- git clone https://github.com/jmaggio14/imagepypelines_image.git
- cd imagepypelines_image && python setup.py install && cd ..
- pip install opencv-python
# astro
- git clone https://github.com/jmaggio14/imagepypelines_astro.git
- cd imagepypelines_astro && python setup.py install && cd ..
# Sphinx requirements
- pip install Sphinx==2.4.4 sphinx_bootstrap_theme==0.7.1 sphinx-automodapi sphinx_copybutton
# codecov and auto-testing requirements
- pip install pytest sybil pytest-cov coverage codecov pytest-doctest-ellipsis-markers --upgrade
script:
# license enforcer
- python enforcer.py
# run tests (both on website and in testing directory) and then generate
# percent test coverage and a coverage report
- py.test --cov=./imagepypelines --ignore=setup.py
after_script:
- kill -9 $PREVENT_TRAVIS_TIMEOUT_PID
after_success:
# upload coverage report
- codecov
# Building website
- cd docs && make html && cd ..
deploy:
# Website Deployment
- provider: pages:git
github-token: $GITHUB_TOKEN
keep-history: false
local-dir: /home/travis/build/jmaggio14/imagepypelines/docs/build/html
verbose: true
# this is the CNAME file contents
fqdn: https://www.imagepypelines.org
# opt into travis's v2 deploy tooling
edge: true
on:
python: '3.6'
branch:
- develop
- master
- provider: pypi
user: jmaggio14
password: $PYPI_PASS
on:
branch: master
tags: true