Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
py_tools_ds
Commits
823cf0bc
Commit
823cf0bc
authored
Nov 18, 2017
by
Daniel Scheffler
Browse files
Beautified docker installer workflow.
parent
4d41b0ab
Pipeline
#1548
passed with stages
in 1 minute and 3 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
823cf0bc
...
...
@@ -18,8 +18,8 @@ test_py_tools_ds:
stage
:
test
script
:
-
source /root/miniconda3/bin/activate
-
source activate
20171117_pyenv
-
export GDAL_DATA=/root/miniconda3/envs/
20171117_pyenv
/share/gdal
-
source activate
py3
-
export GDAL_DATA=/root/miniconda3/envs/
py3
/share/gdal
-
export PYTHONPATH=$PYTHONPATH:/root
# /root <- directory needed later
-
make nosetests
-
make docs
...
...
@@ -36,8 +36,8 @@ test_styles:
stage
:
test
script
:
-
source /root/miniconda3/bin/activate
-
source activate
20171117_pyenv
-
export GDAL_DATA=/root/miniconda3/envs/
20171117_pyenv
/share/gdal
-
source activate
py3
-
export GDAL_DATA=/root/miniconda3/envs/
py3
/share/gdal
-
export PYTHONPATH=$PYTHONPATH:/root
# /root <- directory needed later
-
make lint
artifacts
:
...
...
@@ -52,8 +52,8 @@ test_py_tools_ds_install:
stage
:
test
script
:
-
source /root/miniconda3/bin/activate
-
source activate
20171117_pyenv
-
export GDAL_DATA=/root/miniconda3/envs/
20171117_pyenv
/share/gdal
-
source activate
py3
-
export GDAL_DATA=/root/miniconda3/envs/
py3
/share/gdal
-
conda create -y -q --name py_tools_ds python=3
-
source activate py_tools_ds
# resolve some requirements with conda
...
...
Makefile
View file @
823cf0bc
...
...
@@ -104,5 +104,5 @@ install: clean ## install the package to the active Python's site-packages
gitlab_CI_docker
:
##
Build a docker image for CI use within gitlab
cd
./tests/CI_docker/
;
bash ./build_testsuite_image.sh
basic
_pyenv_docker
:
##
Build a docker image containing Anaconda environment with all basic dependencies installed
cd
./tests/CI_docker/
;
bash ./build_
basic
_pyenv.sh
conda
_pyenv_docker
:
##
Build a docker image containing Anaconda environment with all basic dependencies installed
cd
./tests/CI_docker/
;
bash ./build_
conda
_pyenv.sh
tests/CI_docker/build_
basic
_pyenv.sh
→
tests/CI_docker/build_
conda
_pyenv.sh
View file @
823cf0bc
...
...
@@ -2,7 +2,7 @@
context_dir
=
"./context"
dockerfile
=
"conda_pyenv.docker"
tag
=
"conda_pyenv:0.1"
tag
=
"conda_pyenv:
pinned_v
0.1"
echo
"#### Build basic pyenv docker image"
sudo
docker rmi
${
tag
}
...
...
tests/CI_docker/context/conda_pyenv.docker
View file @
823cf0bc
FROM
centos:7
RUN
yum update
-y
&&
\
yum
install
-y
wget vim bzip2 gcc gcc-c++ make libgl1-mesa-glx mesa-libGL qt5-qtbase-gui git nano tree
yum
install
-y
wget vim bzip2 gcc gcc-c++ make libgl1-mesa-glx mesa-libGL qt5-qtbase-gui git nano tree
gdb
ENV
miniconda_dl 'Miniconda3-latest-Linux-x86_64.sh'
ENV
envconfig 'environment_
20171117
.yml'
ENV
envname '
20171117_pyenv
'
ENV
envconfig 'environment_
pinned_v0.1
.yml'
ENV
envname '
py3
'
ENV
git_lfs_v='2.1.1'
RUN
/bin/bash
-i
-c
"cd /root; wget https://repo.continuum.io/miniconda/
$miniconda_dl
;
\
...
...
tests/CI_docker/context/environment_latest.yml
0 → 100644
View file @
823cf0bc
name
:
py_tools_ds
channels
:
&id1
-
http://conda.anaconda.org/ioam
# only for holoviews
-
http://conda.anaconda.org/conda-forge
dependencies
:
-
python=3.*.*
-
pyqt
-
numpy
-
gdal
-
scikit-image
-
rasterio
-
pyproj
-
lxml
-
geopandas
-
ipython
-
pip
:
-
dicttoxml
-
jsmin
-
cerberus
-
pyprind
-
pint
-
iso8601
-
tqdm
-
mpld3
-
sphinx-argparse
-
six
-
spectral
-
flake8
-
pycodestyle
-
pylint
-
pydocstyle
-
nose
-
nose2
-
nose-htmloutput
-
coverage
-
rednose
tests/CI_docker/context/environment_
20171117
.yml
→
tests/CI_docker/context/environment_
pinned_v0.1
.yml
View file @
823cf0bc
...
...
@@ -5,7 +5,7 @@ channels: &id1
-
http://conda.anaconda.org/conda-forge
dependencies
:
-
python=3.
6
.*
-
python=3.
*
.*
-
pyqt=5.6.0
-
numpy=1.13.3
-
gdal=2.1.4
...
...
tests/CI_docker/context/py_tools_ds_ci.docker
View file @
823cf0bc
FROM
conda_pyenv:0.1
FROM
conda_pyenv:
pinned_v
0.1
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment