Skip to content
Snippets Groups Projects
Commit 5ada9814 authored by Jan Caron's avatar Jan Caron
Browse files

Trying several test in gitlab-ci.yml on miniconda3 docker image.

parent 73ba4927
No related branches found
No related tags found
No related merge requests found
......@@ -15,19 +15,11 @@ before_script:
- echo iffgit.fz-juelich.de,134.94.161.83 "$ID_RSA_IFFGIT_PUBLIC" > ~/.ssh/known_hosts
# Provide read access to owner (octal value code: 400) to known_hosts with chmod:
- chmod 400 ~/.ssh/known_hosts
#
- ls
- conda info --envs
- conda env create -q # -q: quiet/ no progressbar, because it spams the log!
- source activate pyramid
- conda info --envs
# Install jutil via secure ssh connection:
- pip install git+ssh://gitlab@iffgit.fz-juelich.de/unger/jutil.git
stages:
- test
test:
test_pip_minimal:
stage: test
script:
# TODO: Different jobs with custom develop arguments? extra_requires (hyperspy, plotting)?
......@@ -35,8 +27,55 @@ test:
# Install requirements:
# # - pip install -r requirements.txt # TODO: DOES NOT WORK (because mayavi and stuff...)
- pip install -e .['tests']
# Install jutil via secure ssh connection:
- pip install git+ssh://gitlab@iffgit.fz-juelich.de/unger/jutil.git
# Execute tests:
- python setup.py test
# Create coverage report:
- coverage html
artifacts:
paths:
- htmlcov/
test_pip_full:
stage: test
script:
# Install requirements:
- pip install -e .['all']
# Install jutil via secure ssh connection:
- pip install git+ssh://gitlab@iffgit.fz-juelich.de/unger/jutil.git
# Execute tests:
- python setup.py test
test_pip_requirements:
stage: test
script:
- pip install numpy # Needed for mayavi...
# Install requirements:
- pip install -r requirements.txt # TODO: DOES NOT WORK (because mayavi and stuff...)
# Install jutil via secure ssh connection:
- pip install git+ssh://gitlab@iffgit.fz-juelich.de/unger/jutil.git
# Execute tests:
- python setup.py test
test_conda:
stage: test
script:
# Install requirements:
- conda info --envs
- conda env create -q # -q: quiet/ no progressbar, because it spams the log!
- source activate pyramid
- conda info --envs
# Install jutil via secure ssh connection:
- pip install git+ssh://gitlab@iffgit.fz-juelich.de/unger/jutil.git
# Execute tests:
- python setup.py test
......@@ -150,8 +150,8 @@ extras_require["all"] = list(itertools.chain(*list(extras_require.values())))
print('\n-------------------------------------------------------------------------------')
print('checking requirements')
check_requirements()
# print('checking requirements') # TODO: Get rid of!
# check_requirements()
print('write version.py')
write_version_py()
setup(name=DISTNAME,
......
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