-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
42 lines (38 loc) · 1.77 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
language: python
matrix:
include:
- python: 3.6
- python: 3.7
env: PUBLISH_DOCS=true # Publish the docs from just one build.
cache:
directories:
- $HOME/.cache/pip
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
addons:
apt:
packages:
- libfftw3-dev
env:
global:
# Doctr deploy key for scikit-beam/autocorr
- secure: "i9MF5VQn6wNrxD7Ft0X08X/Iy+TtMPoiAblgEasJVnkTS08AyoNfst6T7RC1jkkYadzri17E7sjMQGXY6BvopwQMVoA6FwcbXU7nbKwig8Bf0XqomhEeUjtaYF0/iWNX2BUktFqvVShYFLcOblmFN1xFgYNle50WW5S7QZBg2EId+S7bqTBKMmJA8eOU7BgaaNeYYtnE7aavHa83TSYv7Uzqi46Sk/T3F0lIRE43C3j1MH7/HK9w/i/vmsukisNkc+iK7zKlVhl5VpdQn0/Y2RF5Q3mp5Ueu5Rf3ZMSjunkeX9m7YcxkMIkZj6zVNsWF10lxsNjFGmwh6HD/7H6+RmwOr3LOOWs316DRMJZI8BaCk6Bkng2yFhYqVEKMFk0F3UfpljWDUTDRVMIfBPSNKyaMqbZnA+ufxSlXF4yoJNt6J/eu92fbdeKiy0c3eoX6xo+yPXCNOLjnM6YXm5qcqC6j4ZY0rldZy1Ei0r46V2CeVQc3WY6hnCXk1XlT3Nox+EiWDL+IWUAx9B9O3eD09Zd9QjlieYExFIYIT4ojzhqcxCgEOqgt0rEVB8AL5XKu7soUw1HYonhduiUGqSsp7UVKsTwx7DkEcaM3KnF7//BdwrqE87bLyO+FPR2BBCWWmnEyRePJJLc0cbsukYQ968nP0UIHlPKDTCKkZ6vzzCs="
before_install:
# In particular, we need to ensure that the build dependency pybind11 is
# installed before we try to execute the setup.py.
- pip install -r requirements.txt
install:
- pip install -r requirements-dev.txt
- pip install -e .
script:
- coverage run -m pytest # Run the tests and check for test coverage.
- coverage report -m # Generate test coverage report.
- codecov # Upload the report to codecov.
- flake8 # Enforce code style (but relax line length limit a bit).
- set -e
- make -C docs html # Build the documentation.
- |
if [ $PUBLISH_DOCS ]; then
# Pubish the documentation to GitHub Pages.
pip install doctr
doctr deploy --built-docs docs/build/html .
fi