This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 117
/
Copy path.travis.yml
49 lines (44 loc) · 1.57 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
# This file contains build instructions for Travis CI.
# language and versions (note if using conda we don't use Travis python but add here for consistency
language: python
python:
- "3.6"
# install dependencies
install:
# if using pip then either install dependencies directly or add on seperate lines in a pip_requirements.txt file
#- pip install pytest pytest-cov
#- pip install coveralls
#- pip install -r pip_requirements.txt
# if using conda then we setup an environment from an conda_env.yml file
# first install miniconda
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a # Useful for debugging any issues with conda
# now create the environment and install any extra packages
- conda env create -n test-environment -f conda_env.yml
- source activate test-environment
# pip install and non conda packages
- pip install coveralls
# setup packages
- python setup.py install
# command to run tests
script:
# - py.test --cov-report term-missing --cov=maths
# - py.test --doctest-modules --cov=maths3 --cov-report term-missing
- py.test --cov . --cov-report term-missing
branches:
only:
- master
after_success:
- coveralls
#notifications:
# email:
# recipients:
# on_success: always
# on_failure: always