forked from xpdAcq/xpdAcq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (65 loc) · 2.73 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
language: python
sudo: false
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/matplotlib
env:
global:
- secure: "ePWjP2xNjB2Wa+XlJKiNe+D8VEcY4woC72ySFWYXh6nfW2+OZwOb9TLYojNU67gacc/JKizMSBOKnH5EWeVZRwzR3x5kFFJ5ccv3EPGO1qw15rYExWAWPY45IXBZbmz4u58R4t3viTddZnUtVmMfgS9PzYSe1uNtVYqYfLnfRGX+6uG28xkNRb2TH62coXT0GThvLi/4uP19K5Wvo4Sxoep+WJ7F1AaP6NIoM8Cquxmm2qCE580UOEBEM7myxNzA6tW9aNQwsnJdZt53XyWdXotkOqxLV9/G/hshslsE8xJYHm+HUq2AuhGIVdtq5VUZTnqGPnSaayW8fO+wVsXAqXAO4eV08pMW61VFmmPQ9hGvKteuehVUaeRxVgGEYidyR4SpnVBZFIAylHqpzVIq5VJr2hAzXyJt4SlEZLrDLL7PLJ7b+gDDXM9BECKOdiFN9rl9W1s7+d6Hqlb/F2OPIiv7EpEgK97B6EqHauPK8neEp3VpE9JaLr7AWwbygNlCpJxfOFHq64OGtwmElk0FbxVkM/XSXMjfW8592js6rkybEAjhYvPA1Uunlpb59HyN26Tsd5asV1GTrjAaraKBCyV3mAfqI23tHQP9BFqDGbsfwSfMFQf3nNPprfROLi16mKXxdxibJmOP/tXuoQRe9zMqX0tH8QQO5SLi0e4amBQ="
services:
- mongodb
addons:
apt:
sources:
- mongodb-3.2-precise
packages:
- mongodb-org-server
matrix:
include:
- python: 3.6
before_install:
- git clone https://github.com/NSLS-II/nsls2-ci --branch master --single-branch ~/ci_scripts
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
- "export DISPLAY=:99.0"
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p ~/mc
- export PATH=~/mc/bin:$PATH
- conda config --set always_yes yes --set changeps1 no --set quiet true
- conda update conda --yes
- conda config --add channels conda-forge
install:
- export GIT_FULL_HASH=`git rev-parse HEAD`
- conda create -n testenv python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- conda install --file requirements/build.txt
- conda install pip
- pip install -r requirements/pip.txt
- python -m pip install -e . --no-deps --ignore-installed --no-cache-dir -vvv
- git clean -xfd
script:
- conda install --file requirements/run.txt
- conda install --file requirements/test.txt
# make sure the sqlite file exists to avoid race conditions
- python -c "from bluesky.utils import get_history; get_history()"
# make sure package data is correctly set
- python -c "from xpdsim import xpd_pe1c; xpd_pe1c.get()"
- python -c "from xpdacq.tests.conftest import *"
# copy config file over
- coverage run run_tests.py
- coverage report -m
- codecov
- set -e
- conda install --yes --file requirements/docs.txt
- python -m pip install -e . --no-deps --ignore-installed --no-cache-dir -vvv
- cd docs
- which python
- python --version
- python -c "from xpdacq import __version__"
- make html
- cd ..
- doctr deploy . --built-docs ./docs/_build/html;
after_script:
- set +e
- flake8 .