-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
74 lines (66 loc) · 2.08 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
74
language: python
sudo: false
env:
matrix:
- PRECEDENCE='default'
- PRECEDENCE='default bleeding'
matrix:
allow_failures:
- env: PRECEDENCE='default'
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/matplotlib
services:
- mongodb
addons:
apt:
sources:
- mongodb-3.2-precise
packages:
- mongodb-org-server
python:
- 3.6
before_install:
- 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 config --append channels nsls2forge
- conda config --append channels conda-forge
- conda update conda --yes
- "/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"
- 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 -n test --file requirements/build.txt --file requirements/run.txt --file requirements/test.txt --file requirements/doc.txt
- python -m pip install .
# Need to clean the python build directory (and other cruft) or pytest is
# going to find the build directory and get confused why there are two sets
# of every test file
# make sure the sqlite file exists to avoid race conditions
- git clean -xfd
script:
- set -e
- source activate test
- coverage run run_tests.py
- coverage report -m
- bash <(curl -s https://codecov.io/bash)
- flake8 shed_streaming
- make -C docs html
deploy:
provider: pages
github_token: $GITHUB_TOKEN
keep_history: true
on:
branch: gh-pages