-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
34 lines (28 loc) · 903 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
# Config file for automatic testing at travis-ci.org
dist: xenial
language: generic
env:
global:
- COMMIT_AUTHOR_EMAIL: "f.zapata@esciencecenter.nl"
matrix:
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7
install:
- 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 --set auto_update_conda False
# Useful for debugging any issues with conda
- conda info -a
# Install python env
- conda create --name ci_for_science python=${PYTHON_VERSION}
- source activate ci_for_science
# Install your conda dependencies
- conda install numpy cython
# Install the package
- pip install -e .
- pip install pytest pytest-cov pycodestyle
# command to run tests
script:
pytest tests