-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
46 lines (40 loc) · 1.86 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
language: python
sudo: false
cache:
directories:
- $HOME/.cache/pip
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
services:
- mongodb
matrix:
fast_finish: true
include:
- python: 3.6
- python: 3.7
dist: xenial
env: PUBLISH_DOCS=1
- python: nightly
allow_failures:
- python: nightly
install:
# Install this package and the packages listed in requirements.txt.
- pip install .[complete]
# Install extra requirements for running tests and building docs.
- pip install -r requirements-dev.txt
env:
global:
# Doctr deploy key for NSLS-II/NSLS-II.github.io
- secure: "bt2XuWkYErOF+mWcBc5htV+jCNMiTc1IIj8LImZEqpYQYNANWoUrAHHw7akdl8ihRO7icrhM8Jhz6DV1yVJrUHxKBVm7Ot+ZXyal1fWIOVZk9fOWKRO3kxaiuMD2V83hKIFx/yN2mF70VqlW5zDSK9nv28kZ0ucc6y+8a7XiS8X4RyBgY0gLzbEYmvncjjiv5QgHhlcAnmwCJolRE+X01MOnwgVicRgi4ukuU/+y5oKkNi+LXc1BM/tnfJrWZ63a2zvqi4ZmluJlMFUxTYWmHWB7Y77i4nXRodDFlHLuvPr9LysfFIppdkbAz5s/1CZB7tUK1Z+4iVq5V7JSa0PX5bTlZeAgUQMsRe+E4bpEmNe3vkkscogcbB6eOnPfmc5Qj8/a+JPzYHWZhW7rmekDpjdavEw9GyYBmqM+TU6g3XNbo6bgtiMEJYn/gz6zsez2PAErz7k/Wpthn3nw+PCIICITaGFMPtr2i2A5XKeJyu7cW6g7VHapQ2WIFMh4LIHxrOCBeJ4osZXMmcg8+5Hc6J77VCvGHPQ+DOWp8U+XVOqsj868wmMHgB5W7ruJBUSaDDzlSlsbOQ7U8/e365w1aTB6l+JBHJQkuTL8NxfWMQuo8j+30LcpjXqMxzH2MFSMOgzEAuRGqRKUQ+Ws8xhRrjfWNRfuRBZKLrOCo6DcXGE="
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.
- isort --check-only # Verify sorted imports.
- flake8 --max-line-length=115 # Enforce code style (but relax line length limit a bit).
- make -C docs html # Build the documentation.
- |
if [ $PUBLISH_DOCS ]; then
# Publish docs.
pip install doctr
doctr deploy --deploy-repo NSLS-II/NSLS-II.github.io --deploy-branch-name master amostra;
fi