Skip to content
Snippets Groups Projects
Commit e3d277b3 authored by u214892's avatar u214892
Browse files

#97 tox-conda #94 use miniconda instead of anaconda

parent 14744f8b
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ build_and_deploy_docs:
- tests
before_script:
- apt update
- apt install -y libgl1-mesa-glx xvfb graphviz xdg-utils libcairo2-dev libjpeg-dev libgif-dev
- apt install -y libgl1-mesa-glx xvfb xdg-utils libcairo2-dev libjpeg-dev libgif-dev
- wget -nv https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/Miniconda3-latest-Linux-x86_64.sh
- bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /tmp/miniconda3
- export PATH=/tmp/miniconda3/bin:$PATH
......@@ -72,7 +72,7 @@ benchmarks_and_profiling:
- $BENCHMARKS_AND_PROFILING
before_script:
- apt update
- apt install -y libgl1-mesa-glx xvfb graphviz xdg-utils libcairo2-dev libjpeg-dev libgif-dev
- apt install -y libgl1-mesa-glx xvfb xdg-utils libcairo2-dev libjpeg-dev libgif-dev
- wget -nv https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/Miniconda3-latest-Linux-x86_64.sh
- bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /tmp/miniconda3
- export PATH=/tmp/miniconda3/bin:$PATH
......@@ -86,12 +86,12 @@ test_conda_setup:
stage: integration_testing
before_script:
- apt update
- apt install -y libgl1-mesa-glx xvfb graphviz xdg-utils libcairo2-dev libjpeg-dev libgif-dev
- apt install -y libgl1-mesa-glx xvfb xdg-utils libcairo2-dev libjpeg-dev libgif-dev
- wget -nv https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/Miniconda3-latest-Linux-x86_64.sh
- bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /tmp/miniconda3
- export PATH=/tmp/miniconda3/bin:$PATH
- conda update -n root conda -y
script:
- export PATH=/tmp/miniconda3/bin:$PATH
- bash getting_started/getting_started.sh
[tox]
envlist = py36, py37, examples, notebooks, flake8
envlist = py36, py37, examples, notebooks, flake8, docs, coverage
[travis]
python =
......@@ -20,7 +21,12 @@ commands =
flake8 flatland tests examples benchmarks
[testenv:docs]
basepython = python
; TODO docs requires make and graphviz installed, therefore exclude Windows
platform =
linux2
darwin
; use python3.6 because of incompatibility under Windows of the pycairo installed through conda for py37
basepython = python3.6
whitelist_externals = make
passenv =
DISPLAY
......@@ -30,6 +36,7 @@ conda_deps =
cairosvg
pycairo
tk
graphviz
conda_channels :
conda-forge
anaconda
......@@ -41,7 +48,12 @@ commands =
make docs
[testenv:coverage]
basepython = python
; TODO coverage requires make, therefore exclude Windows
platform =
linux2
darwin
; use python3.6 because of incompatibility under Windows of the pycairo installed through conda for py37
basepython = python3.6
whitelist_externals = make
passenv =
DISPLAY
......@@ -63,7 +75,8 @@ commands =
make coverage
[testenv:benchmarks]
basepython = python
; use python3.6 because of incompatibility under Windows of the pycairo installed through conda for py37
basepython = python3.6
setenv =
PYTHONPATH = {toxinidir}
passenv =
......@@ -81,7 +94,8 @@ commands =
python benchmarks/benchmark_all_examples.py
[testenv:profiling]
basepython = python
; use python3.6 because of incompatibility under Windows of the pycairo installed through conda for py37
basepython = python3.6
setenv =
PYTHONPATH = {toxinidir}
passenv =
......@@ -104,7 +118,8 @@ commands =
python benchmarks/profile_all_examples.py
[testenv:examples]
basepython = python
; use python3.6 because of incompatibility under Windows of the pycairo installed through conda for py37
basepython = python3.6
setenv =
PYTHONPATH = {toxinidir}
passenv =
......@@ -128,7 +143,7 @@ commands =
python {toxinidir}/benchmarks/run_all_examples.py
[testenv:notebooks]
basepython = python
basepython = python3.6
setenv =
PYTHONPATH = {toxinidir}
passenv =
......@@ -158,7 +173,8 @@ commands =
python {toxinidir}/notebooks/run_all_notebooks.py
[testenv:start_jupyter]
basepython = python
; use python3.6 because of incompatibility under Windows of the pycairo installed through conda for py37
basepython = python3.6
setenv =
PYTHONPATH = {toxinidir}
passenv =
......@@ -187,7 +203,34 @@ commands =
python -m jupyter notebook
[testenv]
whitelist_externals = pip
setenv =
PYTHONPATH = {toxinidir}
passenv =
DISPLAY
XAUTHORITY
; HTTP_PROXY+HTTPS_PROXY required behind corporate proxies
HTTP_PROXY
HTTPS_PROXY
conda_deps =
cairosvg
pycairo
tk
conda_channels :
conda-forge
anaconda
deps =
-r{toxinidir}/requirements_dev.txt
; run tests from subfolder to ensure that resources are accessed via resources and not via relative paths
changedir = {envtmpdir}/fefed3ba12bf1ed81dbcc20fb52706ea
commands =
python --version
python -m pytest --basetemp={envtmpdir} {toxinidir}
[testenv:py37]
; exclude py37 because of incompatibility under Windows of the pycairo installed through conda for py37
platform =
linux2
darwin
setenv =
PYTHONPATH = {toxinidir}
passenv =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment