-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
52 lines (43 loc) · 1.07 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
language: python
sudo: required
dist: trusty
group: edge
python:
- "2.7"
- "3.6"
before_install:
- sudo apt-get update -qq
install:
- sudo apt-get install -qq gcc gfortran libblas-dev liblapack-dev
- sudo apt-get install -qq gcc-4.8 gfortran-4.8
- |
if [ ${TRAVIS_PYTHON_VERSION:0:1} = 3 ]; then
sudo apt-get install python3-numpy
pip3 install scipy
pip3 install pytest
pip3 install ase
python3 setup.py build
python3 setup.py install
elif [ ${TRAVIS_PYTHON_VERSION} = "2.7" ]; then
sudo apt-get install python-numpy
pip2 install scipy
pip2 install pytest
pip2 install ase
python2 setup.py build
python2 setup.py install
else
echo "ERROR: Unknown Python version."
fi
before_script:
- cd ${TRAVIS_BUILD_DIR}/test/
script:
- |
if [ ${TRAVIS_PYTHON_VERSION:0:1} = 3 ]; then
python3 -m pytest -v
elif [ ${TRAVIS_PYTHON_VERSION} = "2.7" ]; then
python2 -m pytest -v
else
echo "ERROR: Unknown Python version."
fi
notifications:
email: false