-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
33 lines (27 loc) · 1.01 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
# We set the language to python, even if we use compiled extensions.
language: python
# The python versions to test. This is a very simple job matrix since we have
# no compiled extensions and do not have to test against different compiler versions.
python:
- 3.4
- 3.6
# Global environment variables used for all entries of the job matrix.
env:
global:
# Binary packages to install with pip
- PIP_BINARY="numpy scipy matplotlib healpy"
# Other CMB-S4 dependencies to install from github. Specify the version of each
# package to install.
#-CMBS4_PIP="s4sim=master"
- CMBS4_PIP=""
before_install:
# Install binary python dependencies.
- pip3 install $PIP_BINARY
# Install CMB-S4 dependencies
- for p in $CMBS4_PIP; do r=$(echo $p | cut -d= -f1); v=$(echo $p | cut -d= -f2); pip3 install git+https://github.com/CMB-S4/${r}.git@${v}#egg=${r}; done
# Install this package
install:
- pip3 install .
# Run tests
script:
- python3 -c 'import s4sim.tests; s4sim.tests.run()'