forked from NSLS-II-XPD/xpdView
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
60 lines (53 loc) · 1.7 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
language: python
sudo: false
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/matplotlib
services:
- mongodb
addons:
apt:
sources:
- mongodb-3.2-precise
packages:
- mongodb-org-server
python:
- 3.5
- 3.6
before_install:
- "/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
- export CONDARC=ci/condarc
- export MDS_HOST=localhost
- export MDS_DATABASE=test
- export MDS_TIMEZONE=US/Eastern
- mkdir -p /home/travis/.config/metadatastore
- 'echo ''port: 27017'' > /home/travis/.config/metadatastore/connection.yml'
- export FS_HOST=localhost
- export FS_DATABASE=test
- mkdir -p /home/travis/.config/filestore
- 'echo ''port: 27017'' > /home/travis/.config/filestore/connection.yml'
install:
- export GIT_FULL_HASH=`git rev-parse HEAD`
- conda create --yes -n testenv numpy scipy flake8 matplotlib python=$TRAVIS_PYTHON_VERSION pytest coverage pip bluesky -c conda-forge
- source activate testenv
- python setup.py install
- python -c "from bluesky.utils import get_history; get_history()"
- pip install codecov pytest-env python-coveralls
- git clean -xfd
script:
# - coverage run run_tests.py
# - coverage report -m
# - flake8 xpdview
- true
#after_success:
# - codecov
# - coveralls