forked from biocore/emperor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (44 loc) · 1.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
language: python
python:
- 3.6
# also includes 3.7 and 3.8 (see below)
env:
- NUMPY_VERSION="" # environment to test with the latest version of NumPy
matrix:
# support for python 3.7 is rather awkward via Travis CI
# https://github.com/travis-ci/travis-ci/issues/9815
include:
- python: 3.7
dist: xenial
sudo: true
env: NUMPY_VERSION=""
- python: 3.8
dist: xenial
sudo: true
env: NUMPY_VERSION=""
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh && chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda2/bin:$PATH
# Update conda itself
- conda update --yes conda
install:
# gjslint only runs in py27
- conda create --yes -n gjslint python=2.7 pip six
- conda run -n gjslint pip install https://github.com/google/closure-linter/archive/master.zip
# install requests using conda to avoid a distutils error in certifi
- conda create --yes -n travis python=$TRAVIS_PYTHON_VERSION pip numpy${NUMPY_VERSION} 'scipy>=0.17.0' matplotlib pandas flake8 pep8 jupyter coverage cython scikit-learn requests
- source activate travis
- conda install -c conda-forge phantomjs --yes
- pip install 'sphinx<1.6' sphinx-bootstrap-theme coveralls
- pip install -e '.[all]' --verbose
- npm install -g jsdoc
script:
- flake8 emperor/*.py tests/*.py setup.py
# we just check coverage in the latest version of NumPy
- coverage run tests/all_tests.py && coverage report
- make -C doc html
# we can only run gjslint using py27
- conda run -n gjslint gjslint --custom_jsdoc_tags 'module,function,constructs,alias,default' 'emperor/support_files/js/*.js' 'tests/javascript_tests/*.js'
after_success:
- coveralls