-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
106 lines (91 loc) · 2.72 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
language: python
dist: xenial
python:
- 3.6
- 3.7
- 3.8
os: linux
env:
global:
- HYDRA_LAUNCHER=fork
- OMPI_MCA_rmaps_base_oversubscribe=yes
- MPI=mpich
- COMMS_TYPE=l # local
jobs:
include:
- os: osx
osx_image: xcode11.3
env: MPI=mpich PY=3.7 COMMS_TYPE=l # local
language: generic
python: 3.7
- os: osx
osx_image: xcode11.3
env: MPI=mpich PY=3.8 COMMS_TYPE=l # local
language: generic
python: 3.8
fast_finish: true
services:
- postgresql
cache:
pip: true
apt: true
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- 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 info -a # For debugging conda issues
- conda config --add channels conda-forge
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
conda create --yes --name condaenv python=$PY;
else
conda create --yes --name condaenv python=$TRAVIS_PYTHON_VERSION;
fi
- source activate condaenv
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
COMPILERS=clang_osx-64=9.0.1;
MUMPS=mumps-mpi=5.1.2=haf446c3_1007;
else
COMPILERS=gcc_linux-64;
MUMPS=mumps-mpi=5.1.2=h5bebb2f_1007;
fi
- conda install $COMPILERS
- conda install libblas libopenblas # Prevent 'File exists' error
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.8" ]] || [[ "$PY" == "3.8" ]]; then
conda install nlopt mpi4py scipy mpich;
export PETSC_CONFIGURE_OPTIONS='--with-batch';
conda install petsc4py;
else
conda install nlopt petsc4py petsc $MUMPS mpi4py scipy $MPI;
fi
- conda install psutil
- pip install flake8
- pip install coverage==4.5.4
- pip install pytest
- pip install pytest-cov
- pip install pytest-timeout
- pip install mock
- pip install coveralls
- python install/find_mpi.py # Locate compilers. Confirm MPI library
- mpiexec --version # Show MPI library details
- pip install -e . # Installing libEnsemble
- wget https://github.com/argonne-lcf/balsam/archive/0.3.8.tar.gz
- mkdir ../balsam; tar xf 0.3.8.tar.gz -C ../balsam;
- python install/configure_balsam_install.py
before_script:
- flake8 libensemble
# Run test (-z show output)
script:
- ./libensemble/tests/run-tests.sh -y 'test_balsam*' -z -$COMMS_TYPE
# Track code coverage
after_success:
- mv libensemble/tests/.cov* .
- coveralls
after_failure:
- cat libensemble/tests/regression_tests/log.err