/
.travis.yml
48 lines (38 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
43
44
45
46
47
48
language:
- generic
os:
- linux
install:
- sudo apt-get update;
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda3.sh;
- bash miniconda3.sh -b -p $HOME/miniconda3
# CONDA PY3 BUILD
- export PATH="$HOME/miniconda3/bin:$PATH"
- which python
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda install pip notebook nbconvert -qy
# install toytree from master using pip
- git clone -b reorg https://github.com/eaton-lab/toytree.git toytree-git
- cd toytree-git
- pip install -e .
- cd ..
# install notebook necessities
- conda install jupyter -qy
#- pip install
#- conda install pip jupyter notebook nbconvert ipykernel -qy
#- conda install future requests numpy reportlab -qy
#- pip install toytree
#- conda install -c eaton-lab toytree
# command to run tests
script:
#test installation
- export PATH="$HOME/miniconda3/bin:$PATH"
- python -c "import toyplot; print(toyplot.__version__)"
- python -c "import toytree; print(toytree.__version__)"
# test toytree code
- jupyter-nbconvert --ExecutePreprocessor.kernel_name="python3" --execute docs/4-tutorial.ipynb --to html
- jupyter-nbconvert --ExecutePreprocessor.kernel_name="python3" --execute docs/5-toytrees.ipynb --to html
- jupyter-nbconvert --ExecutePreprocessor.kernel_name="python3" --execute docs/6-treenodes.ipynb --to html