-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
55 lines (45 loc) · 1.66 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
53
54
55
language: python
python: "3.7.7"
before_install:
# Here we just install Miniconda, which you shouldn't have to change.
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
# Useful for debugging any issues with conda
- conda info -a
- conda update --yes conda
install:
# We just set up a conda environment with the right Python version. This
- conda create -y -n test-environment python=$TRAVIS_PYTHON_VERSION --file=tests/requirements.txt
- source activate test-environment
- conda update -y -c conda-forge yt
- pip install trident
- pip install spectacle
- pip install specutils==0.5.2
- pip install gwcs==0.10.0
- pip install astropy
# install salsa package
- python setup.py install
before_script:
# get yt enzo data
- wget http://yt-project.org/data/IsolatedGalaxy.tar.gz
- tar -zxf IsolatedGalaxy.tar.gz
- mv IsolatedGalaxy tests/
# get yt FIRE data
- wget http://yt-project.org/data/FIRE_M12i_ref11.tar.gz
- tar -zxf FIRE_M12i_ref11.tar.gz
- mv FIRE_M12i_ref11 tests/
# get trident data
- mkdir -p $HOME/.trident
- wget http://trident-project.org/data/ion_table/hm2012_hr.h5.gz
- gunzip hm2012_hr.h5.gz
- mv hm2012_hr.h5 $HOME/.trident
# config trident
- echo "[Trident]" > $HOME/.trident/config.tri
- echo "ion_table_dir = $HOME/.trident" >> $HOME/.trident/config.tri
- echo "ion_table_file=hm2012_hr.h5" >> $HOME/.trident/config.tri
script:
- mkdir -p tests/test_enzo_rays
- mkdir -p tests/test_fire_rays
- pytest tests/test_generate_catalog.py --disable-warnings