Last active
February 9, 2017 16:03
-
-
Save BlackDante/bc6ed7eb57d00b73ea577d46173e368f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:6.9.4 | |
before_script: | |
# install ssh-agent | |
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' | |
# run ssh-agent | |
- eval $(ssh-agent -s) | |
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store | |
- ssh-add <(echo "$SSH_KEY") | |
# disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks) | |
# WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config | |
- mkdir -p ~/.ssh | |
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config | |
all_tests: | |
script: | |
- npm install | |
- npm run test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment