Skip to content
Snippets Groups Projects

Fix/requirements into setuppy

Merged Robert Rosca requested to merge fix/requirements-into-setuppy into master
Compare and Show latest version
2 files
+ 73
8
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 11
8
@@ -2,13 +2,6 @@ stages:
- check
- test
.setup-ssh-euxfel-gitlab: &setup-ssh-euxfel-gitlab
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_GITLAB" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan -p 10022 git.xfel.eu > ~/.ssh/known_hosts
checks:
stage: check
only: [merge_requests]
@@ -30,7 +23,17 @@ pytest:
stage: test
only: [merge_requests]
before_script:
- *setup-ssh-euxfel-gitlab
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_GITLAB" | tr -d '\r' | ssh-add -
# Our self-hosted runners have persistent home directories, so here we store
# the known_hosts file in the temporary project dir and tell git to use a ssh
# command that uses this hosts file during operations
- export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=$CI_PROJECT_DIR/.ssh/known_hosts"
- mkdir -p $CI_PROJECT_DIR/.ssh
- chmod 700 $CI_PROJECT_DIR/.ssh
- ssh-keyscan -p 10022 git.xfel.eu > $CI_PROJECT_DIR/.ssh/known_hosts
- ls $CI_PROJECT_DIR/.ssh
- echo $GIT_SSH_COMMAND
script:
- python3 -m venv .venv
- source .venv/bin/activate
Loading