-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
39 lines (34 loc) · 1.14 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
language: python
# make it explicit that we favor the new container-based travis workers
sudo: required
python: "3.6"
before_install:
- sudo apt-get install -y libfftw3-dev
- 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"
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n ompi python=3.6 openmpi pytest joblib mpi4py matplotlib numpy scipy pytest joblib
- source activate ompi
install:
- ./build
# Make a fake hostfile
- echo "localhost slots=6">hostfile
- pip install -e .
script:
- which python
- pytest --version
- timeout 10 dicod/c_dicod/test_barriere
- pytest -vlx --max_workers 2
notifications:
webhooks:
on_success: change
# options: [always|never|change] default: always
on_failure: change
# options: [always|never|change] default: always
on_start: never
# options: [always|never|change] default: always