Commit f75a3231 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added new test requirements to docker container setup.

parent 537e4d24
Pipeline #572 failed with stages
in 32 seconds
......@@ -6,5 +6,9 @@ flake8==2.6.0
tox==2.3.1
coverage==4.1
Sphinx==1.4.8
nose
nose2
nose-htmloutput
coverage
rednose
......@@ -17,7 +17,7 @@ requirements = [
# git+https://github.com/matplotlib/basemap.git
]
test_requirements = ["coverage"]
test_requirements = ["coverage", "nose", "nose2", "nose-htmloutput", "coverage rednose"]
setup(
name='geoarray',
......
......@@ -15,15 +15,13 @@ RUN /bin/bash -i -c "source /root/anaconda3/bin/activate ; \
conda install --yes -c conda-forge gdal ; \
conda install --yes -c conda-forge 'icu=58.*' lxml ; \
conda install --yes -c conda-forge glymur pygrib rasterio pyproj cachetools basemap; \
pip install shapely geopandas dicttoxml jsmin cerberus pyprind pint iso8601 tqdm mpld3 sphinx-argparse folium geojson"
pip install shapely geopandas dicttoxml jsmin cerberus pyprind pint iso8601 tqdm mpld3 sphinx-argparse folium \
geojson nose nose2 nose-htmloutput coverage rednose"
# copy some needed stuff to /root
#COPY *.pkl /root/ # EXAMPLE
#COPY *.h5 /root/ # EXAMPLE
# copy py_tools_ds code to /tmp # TODO move this to setup.py as soon as package is public
COPY py_tools_ds /tmp/py_tools_ds
# install git lfs
RUN /bin/bash -i -c "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash"
......@@ -39,7 +37,3 @@ RUN bash -i -c 'source /root/anaconda3/bin/activate; \
sed -i "/backend : tkagg/c\backend : Agg" $(python -c "import matplotlib; print(matplotlib.matplotlib_fname())"); \
sed -i "/backend : Qt4Agg/c\backend : Agg" $(python -c "import matplotlib; print(matplotlib.matplotlib_fname())"); \
sed -i "/backend : qt5agg/c\backend : Agg" $(python -c "import matplotlib; print(matplotlib.matplotlib_fname())")'
RUN bash -i -c "source /root/anaconda3/bin/activate; \
cd /tmp/py_tools_ds/; python setup.py install;" # TODO move this to setup.py as soon as package is public
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment