image: "python:3.5" before_script: # Check and print Python version - python --version # List installed stuff: - apt list --installed ####- pip install hyperspy tqdm cmocean nose # Create SSH configuration directory if necessary: - mkdir -p --mode=700 ~/.ssh/ # Add SSH key for jutil: - echo "$SSH_KEY_JUTIL" > ~/.ssh/jutil_key - chmod 400 ~/.ssh/jutil_key # Configure SSH to use ~/.ssh/jutil_key for iffgit.fz-juelich.de: - echo -e "Host iffgit.fz-juelich.de\n\tIdentityFile ~/.ssh/jutil_key\n\n" > ~/.ssh/config # For Docker builds disable host key checking. Be aware that by adding that # you are suspectible to man-in-the-middle attacks. # WARNING: Use this only with the Docker executor, if you use it with shell # you will overwrite your user's SSH config. - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config' - pip install git+ssh://gitlab@iffgit.fz-juelich.de/unger/jutil.git - echo "Done" stages: - test test: stage: test script: - python setup.py test