forked from materialsproject/pymatgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
43 lines (42 loc) · 1.62 KB
/
config.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
version: 2
jobs:
py3test:
working_directory: ~/pymatgen
docker:
- image: materialsvirtuallab/circle-ci-pmg-py3:0.0.2
steps:
- checkout
- run:
command: |
export PATH=$HOME/miniconda3/bin:$PATH
conda create --quiet --yes --name test_env python=3.6
source activate test_env
conda install --quiet --yes numpy scipy matplotlib sympy pandas cython
conda install --quiet --yes -c openbabel openbabel
conda install --quiet --yes -c clinicalgraphics vtk
conda update --quiet --all
mkdir coverage_reports
pip install --upgrade pip
pip install --quiet --ignore-installed -r requirements.txt -r requirements-optional.txt
# Add executables and path.
for EXEPATH in `pwd`/cmd_line/*/Linux_64bit; do export PATH=$PATH:$EXEPATH; done
export GULP_LIB=`pwd`/cmd_line/gulp/Libraries
export MPLBACKEND=Agg
pip install --quiet -e .
nosetests --config=nose.cfg --cover-html --cover-html-dir=coverage_reports
# Command line tests
pmg structure --convert --filenames test_files/Li2O.cif POSCAR.pmg
pmg structure --convert --filenames POSCAR.pmg pmg.cif
pmg analyze -d test_files
if [ "$CI_PULL_REQUEST" == "" ]; then coveralls; fi
no_output_timeout: 3600
- store_artifacts:
path: coverage_reports/
destination: tr1
- store_test_results:
path: coverage_reports/
workflows:
version: 2
build_and_test:
jobs:
- py3test