10. fix use ssh in ci script

This commit is contained in:
2019-02-12 17:01:01 +01:00
parent 59ebc8a67f
commit 0e4fcbb175

View File

@ -9,6 +9,19 @@ job1:
- hottis
- linux
- debian
before_script:
- echo "Prepare ssh environment"
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- echo "Preparing ssh environment done"
- apt update
- apt install -y msp430-libc
- apt install -y binutils-msp430
- apt install -y gcc-msp430
script:
- echo "Hallo"
- echo "Welt"
@ -38,19 +51,6 @@ job3:
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- echo "Prepare ssh environment"
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- echo "Preparing ssh environment done"
- apt update
- apt install -y msp430-libc
- apt install -y binutils-msp430
- apt install -y gcc-msp430
script:
- make clean