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

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

parent 0ba1c82f
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ tests: ...@@ -30,6 +30,7 @@ tests:
- bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /tmp/miniconda3 - bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /tmp/miniconda3
- export PATH=/tmp/miniconda3/bin:$PATH - export PATH=/tmp/miniconda3/bin:$PATH
- pip install tox awscli - pip install tox awscli
- conda update -n conda -y
- conda install -c conda-forge tox-conda - conda install -c conda-forge tox-conda
script: script:
- xvfb-run tox -v --recreate - xvfb-run tox -v --recreate
...@@ -50,6 +51,7 @@ build_and_deploy_docs: ...@@ -50,6 +51,7 @@ build_and_deploy_docs:
- bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /tmp/miniconda3 - bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /tmp/miniconda3
- export PATH=/tmp/miniconda3/bin:$PATH - export PATH=/tmp/miniconda3/bin:$PATH
- pip install tox awscli - pip install tox awscli
- conda update -n conda -y
- conda install -c conda-forge tox-conda - conda install -c conda-forge tox-conda
script: script:
- echo "Bucket=${BUCKET_NAME}" - echo "Bucket=${BUCKET_NAME}"
...@@ -75,6 +77,7 @@ benchmarks_and_profiling: ...@@ -75,6 +77,7 @@ benchmarks_and_profiling:
- bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /tmp/miniconda3 - bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /tmp/miniconda3
- export PATH=/tmp/miniconda3/bin:$PATH - export PATH=/tmp/miniconda3/bin:$PATH
- pip install tox awscli - pip install tox awscli
- conda update -n conda -y
- conda install -c conda-forge tox-conda - conda install -c conda-forge tox-conda
script: script:
- xvfb-run tox -e benchmarks,profiling -v --recreate - xvfb-run tox -e benchmarks,profiling -v --recreate
...@@ -86,6 +89,7 @@ test_conda_setup: ...@@ -86,6 +89,7 @@ test_conda_setup:
- apt install -y libgl1-mesa-glx xvfb graphviz xdg-utils libcairo2-dev libjpeg-dev libgif-dev - apt install -y libgl1-mesa-glx xvfb graphviz 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 - 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 - bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /tmp/miniconda3
- conda update -n conda -y
script: script:
- export PATH=/tmp/miniconda3/bin:$PATH - export PATH=/tmp/miniconda3/bin:$PATH
- bash getting_started/getting_started.sh - bash getting_started/getting_started.sh
......
...@@ -14,25 +14,25 @@ with open('README.rst') as readme_file: ...@@ -14,25 +14,25 @@ with open('README.rst') as readme_file:
def get_all_svg_files(directory='./svg/'): def get_all_svg_files(directory='./svg/'):
ret = [] ret = []
for f in os.listdir(directory): for dirpath, subdirs, files in os.walk(directory):
if os.path.isfile(os.path.join(directory, f)): for f in files:
ret.append(directory + f) ret.append(os.path.join(dirpath,f))
return ret return ret
def get_all_images_files(directory='./images/'): def get_all_images_files(directory='./images/'):
ret = [] ret = []
for f in os.listdir(directory): for dirpath, subdirs, files in os.walk(directory):
if os.path.isfile(os.path.join(directory, f)): for f in files:
ret.append(directory + f) ret.append(os.path.join(dirpath,f))
return ret return ret
def get_all_notebook_files(directory='./notebooks/'): def get_all_notebook_files(directory='./notebooks/'):
ret = [] ret = []
for f in os.listdir(directory): for dirpath, subdirs, files in os.walk(directory):
if os.path.isfile(os.path.join(directory, f)): for f in files:
ret.append(directory + f) ret.append(os.path.join(dirpath,f))
return ret return ret
......
...@@ -77,6 +77,7 @@ deps = ...@@ -77,6 +77,7 @@ deps =
-r{toxinidir}/requirements_dev.txt -r{toxinidir}/requirements_dev.txt
-r{toxinidir}/requirements_continuous_integration.txt -r{toxinidir}/requirements_continuous_integration.txt
commands = commands =
python --version
python benchmarks/benchmark_all_examples.py python benchmarks/benchmark_all_examples.py
[testenv:profiling] [testenv:profiling]
...@@ -207,4 +208,5 @@ deps = ...@@ -207,4 +208,5 @@ deps =
; run tests from subfolder to ensure that resources are accessed via resources and not via relative paths ; run tests from subfolder to ensure that resources are accessed via resources and not via relative paths
changedir = {envtmpdir}/fefed3ba12bf1ed81dbcc20fb52706ea changedir = {envtmpdir}/fefed3ba12bf1ed81dbcc20fb52706ea
commands = commands =
py.test --basetemp={envtmpdir} {toxinidir} python --version
python -m pytest --basetemp={envtmpdir} {toxinidir}
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