-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
70 lines (59 loc) · 1.89 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
# Config file for automatic testing at travis-ci.org
# This file will be regenerated if you run travis_pypi_setup.py
sudo: false
language: generic
env:
- PYVER="3.6"
- PYVER="3.5"
- PYVER="3.4"
- PYVER="2.7"
install:
# Install Miniconda.
- curl -L https://repo.continuum.io/miniconda/Miniconda3-4.1.11-Linux-x86_64.sh > miniconda.sh
- openssl md5 miniconda.sh | grep 874dbb0d3c7ec665adf7231bbb575ab2
- bash miniconda.sh -b -p ~/miniconda
- rm miniconda.sh
- source ~/miniconda/bin/activate root
- conda config --set show_channel_urls true
- conda update -y -n root --all
- conda install -y -n root conda-build
- conda clean -tipsy
# Create the test environment.
- conda create -y -n testenv python="${PYVER}"
- conda remove -y --force -n testenv openssl
- conda env update -n testenv --file environment_ci.yml
- conda list --full-name -n testenv openssl || conda install -y -n testenv openssl
- source activate testenv
# Install the package and dependencies.
- pip install -e .
script:
# Run our test suite and report coverage.
- coverage erase
- coverage run --source . setup.py test
- coverage report -m
# Do some basic linting of the code.
- flake8 .
# Report coverage
after_success:
- source activate root
- conda create -y -n dplenv python="3.5";
- conda remove -y --force -n dplenv openssl
- conda env update -n dplenv --file environment_dpl.yml
- conda list --full-name -n dplenv openssl || conda install -y -n dplenv openssl
- source activate dplenv
- coveralls
# Disable email notifications.
notifications:
email: false
# After you create the Github repo and add it to Travis, run the
# travis_pypi_setup.py script to finish PyPI deployment setup
deploy:
provider: pypi
distributions: sdist
user: jakirkham
password:
secure: PLEASE_REPLACE_ME
on:
tags: true
repo: jakirkham/dask-distance
condition: $PYVER == 2.7