forked from openkim/kliff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (36 loc) · 966 Bytes
/
.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
os: linux
sudo: required
language: python
dist: xenial
python:
- "3.5"
- "3.6"
- "3.7"
before_install:
# gcc (gfortran is not there by default, we install all gcc suit just in case)
- sudo apt-get install gcc
- sudo apt-get install gfortran
# keep record of kliff directory
- export KLIFF_DIR=$PWD
- export KIM_API_VERSION=2.1.2
install:
# kim-api
- cd $KLIFF_DIR && cd ..
- wget http://s3.openkim.org/kim-api/kim-api-$KIM_API_VERSION.txz
- tar Jxvf kim-api-$KIM_API_VERSION.txz
- cd kim-api-$KIM_API_VERSION
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release
- sudo make install
- sudo ldconfig
# install SW driver and model
- kim-api-collections-management install user SW__MD_335816936951_004
- kim-api-collections-management install user SW_StillingerWeber_1985_Si__MO_405512056662_005
# kimpy
- pip install kimpy==0.3.0
script:
- cd $KLIFF_DIR
- pip install -e .
- cd tests
- pytest