-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
40 lines (34 loc) · 1.2 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
language: python
sudo: false
env:
global:
BUILD_DOCS_BRANCH: master
DOCS_SUBDIR: doc/
TARGET_DEV_SUBDIR: bluesky/
HTML_SUBDIR: build/html
DOCS_CONDA_DEPS: "bluesky"
DOCS_PIP_DEPS: "tqdm"
matrix:
include:
- python: 3.5
env: BUILD_DOCS=true
before_install:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.5.5-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/mc
- export PATH=/home/travis/mc/bin:$PATH
- conda config --set show_channel_urls True
- conda config --set always_yes True
install:
- export GIT_FULL_HASH=`git rev-parse HEAD`
- conda create -n testenv python=$TRAVIS_PYTHON_VERSION flake8 jsonschema flake8 -c lightsource2 -c conda-forge -c soft-matter
- source activate testenv
- python setup.py 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
- git clean -xfd
script:
- python run_tests.py
after_script:
- flake8 .