forked from pcdshub/jet_tracking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (51 loc) · 2.27 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
language: python
sudo: false
env:
global:
- OFFICIAL_REPO="pcdshub/jet_tracking"
# Doctr deploy key for pcdshub/jet_tracking
- secure: "V2DzajEtsKUl0+J4pziJWuGPQ4q4kUdKs0V7xIdDxnzO6RmuI49tulurfr/HwMa1Euitiuc1SfIpA+rbaPs0xysbZWAG2mpqT7s/RvFZ/+/rTKp/4GZkH8hvS7/8INQTFImwpHUWiG1L+3sv9+3SM0h3CorvWsBnknIkllHu7Qh2dqfW0bK7bgSjn2wGkgoP53QF3BQne08U2n7mMkD0stibzZCODPwUMNNJYDSa/4yjyPO0DOEVFs7iox3ToZ352OFKHsMO+awcMCFN8gP/c7Al+xp4IBGLX0s4U0AQGru+JqKae3zwukq2pDyWWgieH5QpAfm/Ht7KKH4hnzGtj9AL81dC9RkXDLV3iSN0SNPrVlrjJNnQi9gTxsXHd2NwVF0kXgo+7oX/zoEpIn+Z6wfOfseO+KFFFYYz3ASKS1U8UZo5qyAcCFPHl0T0WEcYZVvfre1GQkpRRVnNvfJdEAN2rWMi+ovKcVnH8rhc4uPwxdR5vSAcI1xKJMS7OUI0edAm2LvIOh4+ri2et5WR4ulhpaVm5/iDBxqYaz/vGWy+vu+Q9UzrZuGP4igt+SqMMlXkrAaJhAURaKSnqOiVUZI4JCeQ+0f88N2SkupsYAjIc040tEKsBaLgjBL1BnouR1owGwBqv6yeMail8nW0HBRZMGyH/SI4ZvK/HCWBGMg="
matrix:
include:
- python: 3.6
env:
- PCDS_CHANNEL=pcds-tag
- python: 3.6
env:
- PCDS_CHANNEL=pcds-dev
- BUILD_DOCS=1
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda install conda-build anaconda-client
- conda update -q conda conda-build
- conda config --add channels pcds-tag
- conda config --add channels $PCDS_CHANNEL
- conda config --append channels conda-forge
- conda config --remove channels defaults
- conda config --set channel_priority true
# Useful for debugging any issues with conda
- conda info -a
# Test conda build
- conda build -q conda-recipe --python $TRAVIS_PYTHON_VERSION --output-folder bld-dir
- conda config --add channels "file://`pwd`/bld-dir"
# Create test environment
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION jet_tracking --file requirements-dev.txt
- source activate test-environment
script:
#- coverage run -m pytest -vv tests
- make -C docs html # Build the documentation.
#- coverage report -m
#- flake8 jet_tracking/ tests/
# Build docs
- set -e
- |
if [[ $BUILD_DOCS ]]; then
pushd docs
make html
popd
doctr deploy . --built-docs docs/build/html --deploy-branch-name gh-pages
fi