Use gz instead of lzma because test in python2.7 fails

This commit is contained in:
Atsushi Togo 2020-08-26 15:04:19 +09:00
parent 3801539196
commit 14b733a370
5 changed files with 4 additions and 2 deletions

View File

@ -23,7 +23,7 @@ before_install:
- export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH - export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH
install: install:
- conda install --yes -c conda-forge matplotlib-base pyyaml openblas libgfortran gcc_linux-64 gxx_linux-64 h5py scipy pytest codecov pytest-cov - conda install --yes -c conda-forge matplotlib-base pyyaml openblas libgfortran gcc_linux-64 gxx_linux-64 h5py scipy pytest codecov pytest-cov alm
- echo $TRAVIS_BRANCH - echo $TRAVIS_BRANCH
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then - if [[ "$TRAVIS_BRANCH" == "master" ]]; then
pip install https://github.com/phonopy/phonopy/archive/master.zip --user; pip install https://github.com/phonopy/phonopy/archive/master.zip --user;

View File

@ -37,6 +37,7 @@ requirements:
- openblas - openblas
- libgfortran - libgfortran
- spglib - spglib
- alm
run: run:
- python - python
@ -50,6 +51,7 @@ requirements:
- openblas - openblas
- libgfortran - libgfortran
- spglib - spglib
- alm
test: test:
# Python imports # Python imports

View File

@ -24,5 +24,5 @@ def si_pbesol_111():
@pytest.fixture(scope='session') @pytest.fixture(scope='session')
def si_pbesol_iterha_111(): def si_pbesol_iterha_111():
yaml_filename = os.path.join(current_dir, yaml_filename = os.path.join(current_dir,
"phonopy_params-Si111-iterha.yaml.xz") "phonopy_params-Si111-iterha.yaml.gz")
return phonopy.load(yaml_filename, log_level=1, produce_fc=False) return phonopy.load(yaml_filename, log_level=1, produce_fc=False)

Binary file not shown.