-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
42 lines (40 loc) · 1.44 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
language: python
python:
- "3.7"
envs:
global:
- DENGO_INSTALL_PATH=$TRAVIS_BUILD_DIR/dengo_install
- CVODE_PATH=$TRAVIS_BUILD_DIR/cvode_instdir
- HDF5_PATH=$TRAVIS_BUILD_DIR/hdf5_install
- SUITESPARSE_PATH=$TRAVIS_BUILD_DIR/SuiteSparse
- HDF5_DIR=$TRAVIS_BUILD_DIR/hdf5_install
before_install:
- sudo apt-get install gfortran libblas-dev liblapack-dev
- export DENGO_INSTALL_PATH=$TRAVIS_BUILD_DIR/dengo_install
- export CVODE_PATH=$TRAVIS_BUILD_DIR/cvode_instdir
- export HDF5_PATH=$TRAVIS_BUILD_DIR/hdf5_install
- export SUITESPARSE_PATH=$TRAVIS_BUILD_DIR/SuiteSparse
- export HDF5_DIR=$TRAVIS_BUILD_DIR/hdf5_install
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DENGO_INSTALL_PATH/lib:$HDF5_PATH/lib
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SUITESPARSE_PATH/lib
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CVODE_PATH/lib
- ./install-suitesparse.sh
- ./install-cvode.sh &> cvode_install.out
- ./install-chiantipy.sh &> chiantipy_install.out
- ./install-hdf5.sh
- ./install-yt.sh &> yt_install.out
# - ./install-grackle.sh
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install h5py
- pip install sympy
- pip install yt
- pip install -e .
# command to run tests
script:
- echo $SUITESPARSE_PATH
- echo $HDF5_PATH
- echo $DENGO_INSTALL_PATH
- echo $LD_LIBRARY_PATH
- pytest --ignore-glob="*cuda*" -v examples/test/