-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
58 lines (49 loc) · 1.3 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
language: python
cache: pip
sudo: false
env:
global:
- ABINIT_VERSION=8.10.1
- ABIPY_PYTEST=yes
- OPENBLAS_NUM_THREADS=1
- OMP_NUM_THREADS=1
matrix:
include:
#- os: linux
# python: 3.6
# env:
# - ABIPY_INSTALLER=conda_environment
- os: linux
python: 3.7
env:
- ABIPY_INSTALLER=conda ABIPY_COVERALLS=yes
install:
- env
- ulimit -s unlimited
- |
if [ "${ABIPY_INSTALLER}" == "conda" ]; then
source dev_scripts/conda_get.sh
# Install abinit and abipy from conda channels.
conda install -y -c abinit --file ./requirements.txt
elif [ "${ABIPY_INSTALLER}" == "conda_environment" ]; then
# Build conda env from environment.yml produced with:
# conda env export | grep -v "^prefix: " > environment.yml
source dev_scripts/conda_get.sh
conda env update --file=binder/environment.yml
conda activate abitutorials
fi
- mkdir -p ${HOME}/.abinit/abipy
- cp managers/scheduler.yml ${HOME}/.abinit/abipy/scheduler.yml
- cp managers/manager.yml ${HOME}/.abinit/abipy/manager.yml
script: "./dev_scripts/runtests.sh"
branches:
only:
- master
after_success:
- if [[ "${ABIPY_COVERALLS}" == "yes" ]]; then coveralls; fi
notifications:
email:
recipients:
on_success: change
on_failure: always