-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
27 lines (27 loc) · 1.11 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
language: python
python:
- "3.6"
- "3.7"
- "3.8"
# Work around travis ci shallow clone not working with conda build
git:
depth: 99999
sudo: false
env:
global:
- secure: "gQ24XPFgPKmykrFxtyTwbKDV8GRoLkKn/PPUUJVbXuoep73XmDywY4fUs0yuwRx2quBZG18JlyCFgxzNKNSQNRCzF4rGnFfhNiOB/PlBB8+p3HhsPeeUnuHJvAh98mI2WRu93kNUnY7OByWNzyo3Qnpp63OgNmkT8Kp8Xu7CB0c="
install:
- source ci/travis/install.sh
- conda create -n phildb_env -y python=$TRAVIS_PYTHON_VERSION coverage nose mock
- source activate phildb_env
- pip install codecov
- pip install coveralls
- conda build --python=$TRAVIS_PYTHON_VERSION conda.recipe
- conda install -y --use-local phildb
script:
- nosetests tests -a '!performance' --cover-erase --with-coverage --cover-package=phildb --cover-html --with-xunit && coverage xml --rcfile=.coveragerc
after_success:
- echo anaconda --token XXXX upload `python ci/get_labels.py` `conda build --python=$TRAVIS_PYTHON_VERSION conda.recipe --output`
- anaconda --token $CONDA_TOKEN upload `python ci/get_labels.py` `conda build --python=$TRAVIS_PYTHON_VERSION conda.recipe --output`
- codecov
- coveralls