-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
49 lines (41 loc) · 1.85 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
language: python
sudo: false
before_install:
- sudo apt-get update && sudo apt-get install -y --no-install-recommends texlive-fonts-recommended
texlive-latex-extra texlive-fonts-extra texlive-humanities texlive-science latex-xcolor
dvipng texlive-latex-recommended python-pygments lmodern texlive-xetex
latexdiff texlive-generic-recommended latexmk texlive-luatex
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls yes
- conda config --add channels conda-forge
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment python=3.5 pip mpmath matplotlib pytest pyflakes numpy scipy pyne gcc jinja2 gmpy2 cython scikit-umfpack colorama sympy
- source activate test-environment
- python setup.py build_ext --inplace
# Make matplotlib stuff work
- export MATPLOTLIBRC=~/matplotlibrc
- mkdir -p $MATPLOTLIBRC
- >
echo "backend : Agg" >> $MATPLOTLIBRC/matplotlibrc
script:
- set -e
- pyflakes transmutagen setup.py
- py.test
# Test the analysis scripts (except ORIGEN, since we need data for that)
- PYTHONPATH=py_solve python -m transmutagen.analysis --nofission --file test.pgf
- PYTHONPATH=py_solve python -m transmutagen.analysis --eigenvals --file test.pdf
- PYTHONPATH=py_solve python -m transmutagen.analysis --pusa-coeffs --latex test.tex --file test.pgf
- python -m transmutagen.analysis --gensolve --pairs-per-pass 3000
- python -m transmutagen.analysis --degrees
- python -m transmutagen.analysis --lusolve
# See if it installs
- python setup.py sdist
- pip install dist/*
- cd /
- python -c 'import transmutagen'