-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
executable file
·47 lines (35 loc) · 968 Bytes
/
.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
language: python
# Run jobs on container-based infrastructure, can be overridden per job
dist: trusty
matrix:
include:
# Extra includes for OSX since python language is not available by default on OSX
- os: osx
language: generic
env: PYTHON_VER=3.6
- os: linux
python: 3.6
env: PYTHON_VER=3.6
before_install:
# Additional info about the build
- uname -a
- df -h
- ulimit -a
# Install the Python environemt
- source devtools/travis-ci/before_install.sh
- python -V
install:
# Create test environment for package
- conda create -n test python=$PYTHON_VER pip pytest pytest-cov
- source activate test
# Install pip only modules
- pip install codecov
# Build and install package
- conda build --python=$PYTHON_VER devtools/conda-recipe
- conda install --use-local titrato
script:
- pytest -v --cov=titrato titrato/tests/
notifications:
email: false
after_success:
- codecov