|
| 1 | +version: 2 |
| 2 | +jobs: |
| 3 | + py3test: |
| 4 | + working_directory: ~/atomate |
| 5 | + docker: |
| 6 | + - image: materialsvirtuallab/circle-ci-pmg-py3:3.7.3 |
| 7 | + - image: circleci/mongo:3.4.15 |
| 8 | + steps: |
| 9 | + - checkout |
| 10 | + - restore_cache: |
| 11 | + key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }} |
| 12 | + - run: |
| 13 | + command: | |
| 14 | + export PATH=$HOME/miniconda3/bin:$PATH |
| 15 | + conda create --quiet --yes --name test_env python=3.7 |
| 16 | + source activate test_env |
| 17 | + conda install --quiet --yes numpy scipy matplotlib sympy pandas |
| 18 | + conda install --quiet --yes -c conda-forge openbabel |
| 19 | + # conda install --quiet --yes -c clinicalgraphics vtk |
| 20 | + conda install --quiet --yes -c conda-forge python-igraph |
| 21 | + conda update --quiet --all |
| 22 | + wget https://vampire.york.ac.uk/resources/release-5/vampire-5.0-linux.tar.gz |
| 23 | + tar -zxvf vampire-5.0-linux.tar.gz |
| 24 | + export PATH=/root/atomate/linux/:$PATH |
| 25 | + pip install --quiet -r requirements.txt -r requirements-ci.txt |
| 26 | + # Add executables and path. |
| 27 | + for EXEPATH in `pwd`/cmd_line/*/Linux_64bit; do export PATH=$PATH:$EXEPATH; done |
| 28 | + pip install --quiet -e . |
| 29 | + pytest --ignore=atomate/qchem/test_files --cov=atomate --cov-report html:coverage_reports atomate |
| 30 | + no_output_timeout: 3600 |
| 31 | + - store_artifacts: |
| 32 | + path: coverage_reports/ |
| 33 | + destination: tr1 |
| 34 | + - store_test_results: |
| 35 | + path: coverage_reports/ |
| 36 | + py3devtest: |
| 37 | + working_directory: ~/atomate |
| 38 | + docker: |
| 39 | + - image: materialsvirtuallab/circle-ci-pmg-py3:3.7.3 |
| 40 | + - image: circleci/mongo:3.4.15 |
| 41 | + steps: |
| 42 | + - checkout |
| 43 | + - restore_cache: |
| 44 | + key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }} |
| 45 | + - run: |
| 46 | + command: | |
| 47 | + export PATH=$HOME/miniconda3/bin:$PATH |
| 48 | + conda create --quiet --yes --name test_env python=3.7 |
| 49 | + source activate test_env |
| 50 | + conda install --quiet --yes numpy scipy matplotlib sympy pandas |
| 51 | + conda install --quiet --yes -c conda-forge openbabel |
| 52 | + # conda install --quiet --yes -c clinicalgraphics vtk |
| 53 | + conda install --quiet --yes -c conda-forge python-igraph |
| 54 | + conda update --quiet --all |
| 55 | + wget https://vampire.york.ac.uk/resources/release-5/vampire-5.0-linux.tar.gz |
| 56 | + tar -zxvf vampire-5.0-linux.tar.gz |
| 57 | + export PATH=/root/atomate/linux/:$PATH |
| 58 | + pip install --quiet -r requirements.txt -r requirements-ci.txt |
| 59 | + pip install git+https://github.com/materialsproject/pymatgen.git --upgrade |
| 60 | + pip install git+https://github.com/materialsproject/custodian.git --upgrade |
| 61 | + pip install git+https://github.com/materialsproject/fireworks.git --upgrade |
| 62 | + # Add executables and path. |
| 63 | + for EXEPATH in `pwd`/cmd_line/*/Linux_64bit; do export PATH=$PATH:$EXEPATH; done |
| 64 | + pip install --quiet -e . |
| 65 | + pytest --ignore=atomate/qchem/test_files --cov=atomate --cov-report html:coverage_reports atomate |
| 66 | + no_output_timeout: 3600 |
| 67 | + - store_artifacts: |
| 68 | + path: coverage_reports/ |
| 69 | + destination: tr1 |
| 70 | + - store_test_results: |
| 71 | + path: coverage_reports/ |
| 72 | + |
| 73 | +workflows: |
| 74 | + version: 2 |
| 75 | + build_and_test: |
| 76 | + jobs: |
| 77 | + - py3test |
| 78 | + - py3devtest: |
| 79 | + filters: # don't run dev tests on main branch |
| 80 | + branches: |
| 81 | + ignore: |
| 82 | + main |
| 83 | + |
| 84 | + |
0 commit comments