-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.travis.yml
50 lines (45 loc) · 1.55 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
dist: xenial
language: python
python:
- 3.6
- 3.7
- 3.8
- 3.9
notifications:
email: false
services:
- mongodb
before_install:
- if [ "${TRAVIS_PYTHON_VERSION}" = "2.7" ]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- chmod +x miniconda.sh && ./miniconda.sh -b
- if [ "${TRAVIS_PYTHON_VERSION}" = "2.7" ]; then
export PATH=$HOME/miniconda2/bin:$PATH; ls $HOME/miniconda2/bin;
else
export PATH=$HOME/miniconda3/bin:$PATH; ls $HOME/miniconda3/bin;
fi
- echo $PATH
- pwd
- export PYTHONPATH=`pwd`
- conda update --yes conda
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
# Not longer used since moved to dist: xenial
# - sudo rm -rf /dev/shm
# - sudo ln -s /run/shm /dev/shm
# sudo apt-get -qq update
# sudo apt-get install -y gcc gfortran m4 autoconf automake libtool
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION openblas numpy scipy nose coverage matplotlib cython
- pip install pymongo psutil coveralls spglib
# - pip install -e "git+https://github.com/atztogo/spglib.git#egg=spglib&subdirectory=python"
# - pip install -e "git+https://github.com/z4r/python-coveralls.git#egg=coveralls"
- python3 setup.py build_ext --inplace
# Run test
script:
nosetests -v --with-cov --cover-package pychemia --logging-level=INFO
# Calculate coverage
after_success:
- coveralls