forked from DarkEnergySurvey/mkauthlist
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (38 loc) · 1.26 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
os:
- linux
language: python
python:
- "2.7"
- "3.6"
notifications:
email: false
sudo: required
# To get latex and revtex4-1
before_install:
- yes "" | sudo add-apt-repository ppa:jonathonf/texlive
- sudo apt-get update -y
- sudo apt-get install -y --no-install-recommends
texlive-fonts-recommended
texlive-latex-extra
texlive-latex-recommended
texlive-publishers
texlive-generic-recommended
# latex-xcolor
# - wget http://hea-www.harvard.edu/~alexey/emulateapj/emulateapj.cls
# - wget http://mirror.jmu.edu/pub/CTAN/macros/latex/contrib/mnras/mnras.cls
# - wget http://journals.aas.org/authors/aastex/aastex61.cls
# Setup dependencies and install package
install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda info -a
- conda create -q -n travis-env python=$TRAVIS_PYTHON_VERSION numpy nose -c conda-forge
- source activate travis-env
- python setup.py install
# command to run tests
script:
- nosetests --exe tests
#- nosetests --exe -s tests
#- nosetests --exe -s tests/test_journals.py:TestAuthlistFunc.test_aastex61