-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (36 loc) · 1.12 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
language: python
# sudo false implies containerized builds
sudo: false
python:
- 3.6
env:
global:
# List package dependencies for conda
- CONDA_DEPS="docopt gitpython clint pytest pytest-cov coverage"
# List package dependencies for pip
- PIP_DEPS="cookiecutter inquirer schema ruamel.yaml"
# package name for test invocation
- PACKAGENAME="masonry"
before_install:
# Here we download miniconda and install the dependencies
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- hash -r
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -f -p $MINICONDA
- conda config --set always_yes yes
- conda update conda
- conda info -a
- conda create -n testenv python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- conda install -c conda-forge $CONDA_DEPS
- pip install $PIP_DEPS
- pip install codecov
install:
- cd package
- python setup.py install
- cd ..
script:
- pytest --verbose --cov-report term --cov=$PACKAGENAME --ignore=package/tests/data/ --ignore package/tests/example_templates package/tests/
after_success:
- codecov