-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy path.travis.yml
43 lines (35 loc) · 1.1 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
sudo: true
language: python
python:
- "3.6"
install:
# Install Miniconda
- 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
# Set up an environment for Python
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
# Install mpi4py with mpich
- conda install -n test-environment -q numpy scipy pip
- conda install -n test-environment -q --channel conda-forge mpich mpi4py
# Install py-earth and code coverage
- pip install --upgrade pip
- pip install six http://github.com/scikit-learn-contrib/py-earth/tarball/master
- pip install codecov
- pip install pytest-cov
# Install pySOT
- python setup.py install
script:
- cd ./examples/
- make
- make example
- make mpiexample
- cd -
- python -m pytest --cov-config .coveragerc --cov=pySOT --disable-warnings
after_success:
- codecov