chore(gitlab ci): fix tests & ssh permissions

This commit is contained in:
Gregor Kleen 2019-11-11 08:32:03 +01:00
parent 1d161eef02
commit 2082979ace

View File

@ -143,7 +143,7 @@ hlint:dev:
yesod:test:dev:
stage: test
script:
- stack test --coverage --fast --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --skip hlint
- stack test --coverage --fast --flag uniworx:-library-only --flag uniworx:dev --flag uniworx:pedantic --skip hlint
needs:
- frontend:build
- yesod:build:dev # For caching
@ -179,7 +179,7 @@ hlint:
yesod:test:
stage: test
script:
- stack test --coverage --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic uniworx:test:hlint --skip hlint
- stack test --coverage --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --skip hlint
needs:
- frontend:build
- yesod:build # For caching
@ -206,7 +206,7 @@ deploy:uniworx4:
- apt-get update -y
- apt-get install -y --no-install-recommends openssh-client
- eval $(ssh-agent -s)
- ssh-add ${SSH_PRIVATE_KEY_UNIWORX4}
- "ssh-add - <${SSH_PRIVATE_KEY_UNIWORX4}"
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- cp ${SSH_KNOWN_HOSTS} ~/.ssh/known_hosts