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: ...@@ -15,19 +15,11 @@ before_script:
- echo iffgit.fz-juelich.de,134.94.161.83 "$ID_RSA_IFFGIT_PUBLIC" > ~/.ssh/known_hosts - 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: # Provide read access to owner (octal value code: 400) to known_hosts with chmod:
- chmod 400 ~/.ssh/known_hosts - 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: stages:
- test - test
test: test_pip_minimal:
stage: test stage: test
script: script:
# TODO: Different jobs with custom develop arguments? extra_requires (hyperspy, plotting)? # TODO: Different jobs with custom develop arguments? extra_requires (hyperspy, plotting)?
...@@ -35,8 +27,55 @@ test: ...@@ -35,8 +27,55 @@ test:
# Install requirements: # Install requirements:
# # - pip install -r requirements.txt # TODO: DOES NOT WORK (because mayavi and stuff...) # # - pip install -r requirements.txt # TODO: DOES NOT WORK (because mayavi and stuff...)
- pip install -e .['tests'] - 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 - python setup.py test
# Create coverage report:
- coverage html - coverage html
artifacts: artifacts:
paths: paths:
- htmlcov/ - 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()))) ...@@ -150,8 +150,8 @@ extras_require["all"] = list(itertools.chain(*list(extras_require.values())))
print('\n-------------------------------------------------------------------------------') print('\n-------------------------------------------------------------------------------')
print('checking requirements') # print('checking requirements') # TODO: Get rid of!
check_requirements() # check_requirements()
print('write version.py') print('write version.py')
write_version_py() write_version_py()
setup(name=DISTNAME, 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